- how the particles and users are stored
- how the distances are stored
- how the plot was generated (in particular, have you got handles to the graphics objects?)
- the maximum number of colours you expect to need (are the 7 default colors of ColorOrder enough?)
Info
此问题已关闭。 请重新打开它进行编辑或回答。
could anyone help me to solve the issue.
1 次查看(过去 30 天)
显示 更早的评论
I am getting the figure when my code executes:
With respect to the figure the 12 black small circle represents the number of users and 5 colourful big circle represents the particles.
using my code i measured the distance of each and every particle with respect to 12 users.
based upon the distance measurements the color of the small circle needs to be changed .
for example,if particle 1 is chosen to be the best then the result from the command window:
particle 1 (dimensions) = 1.4625 2.2959
distance of particle 1 with respect to 12 users :
2.8405
2.7748
1.8211
2.7829
1.8504
2.3174
0.2868
0.8485
2.1030
0.3243
0.2199
0.7376
Now the color of the 12 users needs to be changed according to this distance measurement.
the first minimum distance user and first maximum distance users needs to be in same color
the second minimum distance user and secondmaximum distance users needs to be in another same color.
the third minimum distance user and third maximum distance users needs to be in another same color and goes on.
Could anyone please help me on this.
1 个评论
Guillaume
2019-2-8
编辑:Guillaume
2019-2-8
It would be helpful to know:
回答(1 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!