MATLAB Program that Scatters Nodes Uniformly Randomly over a Square Region

$29.00$19.001649 reads

Question

Write a program (in any language, including matlab) to do the following. Consider a square region of 100 X 100 units. Scatter 100 nodes uniformly randomly over this square region. Do not confine the coordinates to integer values only. For example, the coordinate of a node could be (27.234561, 89.876541). Two nodes are connected (i.e., there is an edge between the two nodes) if their mutual distance is less than d units. Find the adjacency matrix for the network thus created for d=15. i) Find and plot the degree distribution. Do the same (i.e., find and plot the degree distribution) when ii) d = 30, iii) d = 40. Use the same deployment of the 100 nodes (i.e., for the same coordinates you used for d=15). For all the plots, keep the same range for the x-axis and y-axis. Instructions: For this question, just submit the 3 plots.

Summary

This question belongs to MATLAB software and discusses about application of MATLAB in mathematics to write a program that scatter nodes uniformly randomly over a square region and to plot the degree distribution.

Answer is in MATLAB format

 

Add to Cart