![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/283931/image.png)
How to draw an image showing different-sized "threaded" black circles?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
m975
il 12 Apr 2020
Risposto: KALYAN ACHARJYA
il 12 Apr 2020
I want to draw an image showing seven different-sized black circles (from big to small or other ordering), which are positioned by threadening them on an invisible line. In the easiest case, it is a vertical line in the middle of the image. In this case, the image would show a stack of circles. In the next step, the position of circles should be changeable by manipulating the line (e.g., a horizontal thread or a curve by a function). Moreover, it should also be possible to change the ordering of the circles and the distance between them.
Can anybody help me with this assignment? I already found the function "Create Line Plot with Markers", but its functionality does not meet my expectations. Thanks for your help!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/283928/image.png)
0 Commenti
Risposta accettata
KALYAN ACHARJYA
il 12 Apr 2020
Please modify as per your requirements
rectangle('Position',[2 2 4 4]);
hold on;
rad=linspace(0.3,0.1,8)
for i=1:8
viscircles([4,2.5+i/2.5],rad(i),'Color','k')
end
axis off
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/283931/image.png)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Graphics Performance in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!