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

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개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

태그

질문:

2017년 1월 10일

편집:

2017년 1월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by