How can i write a program that draws 10 nested circles ?

1 Ansicht (letzte 30 Tage)
student  1727
student 1727 am 10 Jan. 2017
Bearbeitet: Image Analyst am 15 Jan. 2017
clc
t=0:0.1:1;
hold on
for i=1:10
plot(i*cos(2*pi*t),i*sin(2*pi*t))
end
I tried this, but it isn't what I want.

Akzeptierte Antwort

Star Strider
Star Strider am 10 Jan. 2017
You plotted concentric circles. You can improve the resolution with:
t = linspace(0, 1, 1000);
and make the circles look like circles rather than ellipses with:
axis equal

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by