i am new to matlab and i want to make a circle and generate 50 random points inside it and measure distances
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159870/image.png)
i am new to matlab and i want to make a circle and generate 50 random points inside it like the picture and make e center for the circle and measure the distance between every two points and distance between every point and center if distance between 2 points is less than distance between each point and the center then i want to make a red link between the two points, if the distance between the two points is greater than the distance between one point and the center while it is smaller thank the distance between the other point and the center then a blue link between the two points ,if the distance between the two points is greater than the distance between each point and the center then make w green link from each point to the center.
0 件のコメント
回答 (1 件)
Dishant Arora
2014 年 3 月 31 日
編集済み: Dishant Arora
2014 年 3 月 31 日
To start with here are some useful links:
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!