Can somebody explain to me this code?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Sean de Wolski
am 31 Mär. 2014
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 Kommentare
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!