i am new to matlab and i want to make circle with random 50 points inside it for example but i don't know how then i thought of this code but in pseudo i want to change it to matlab code

1 visualización (últimos 30 días)
i am new to matlab and i want to make circle with random 50 points inside it for example but i don't know how then i thought of this code but in pseudo i want to change it to matlab code
01: FOR all nodes j 02: FOR all nodes i except node j 03: IF distance(j to center) < distance(j to i) AND 04: distance(i to cell center) < distance(j to i) 05: THEN there's a red link from node i to node j 06: ELSEIF distance(j to cell center) < distance(j to i) 07: THEN there's a blue link from node i to node j 08: ELSE there's no D2D link from node i and j; 09: node i has a green link with the base station 10: END if 11: END inner for-loop

Respuestas (2)

Image Analyst
Image Analyst el 31 de Mzo. de 2014

Kelly Kearney
Kelly Kearney el 31 de Mzo. de 2014
A few more functions that should help:
pdist
gplot

Categorías

Más información sobre MATLAB Parallel Server en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by