Can somebody explain to me this code?
조회 수: 2 (최근 30일)
이전 댓글 표시
so here's the code:
t=0:pi/120:2*pi;
x=5+3*cos(t);
y=7+3*sin(t);
plot(x,y)
axis equal
the only confusing part is t or theta, can somebody explain it to me how it works? Thanks!
댓글 수: 0
답변 (1개)
Sean de Wolski
2014년 3월 31일
take a look at t (remove the semicolon or look at it in the workspace):
t=0:pi/120:2*pi
And to visually look at it:
plot(t)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!