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

1 回表示 (過去 30 日間)
student  1727
student 1727 2017 年 1 月 10 日
編集済み: Image Analyst 2017 年 1 月 15 日
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.

採用された回答

Star Strider
Star Strider 2017 年 1 月 10 日
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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by