How to store data
Ältere Kommentare anzeigen
I am trying to store data for variables x, y, r and theta but am not sure how to do it. Any help would be greatly appreciated
angle = pi;
D = 0.05;
while angle < 2*pi
angle = angle + pi/100;
x = (D/2)*cos(angle);
y = (D/2)*sin(angle);
r = (x^2+y^2)^0.5;
theta = atan(y/x);
end
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Polar Plots finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!