Plotting graph with different color points
2 次查看(过去 30 天)
显示 更早的评论
Generate 2000 random values (not just integers) for x in the interval [−35; 165] and y in the interval [−20; 80]. Out of these points randomly select two points as center. Around the first center randomly select radii for two concentric circle spaces. First radius random number between 1 to 15, and second radius value is a random number between first radii and 40.
Plot points x and y such that all the points lying inside the smaller concentric circle in green color, points lying in the second concentric circle are in red color. Repeat the same with the second center and its two concentric circles. Remaining points are plotted in yellow.
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!