Ploting Quarter Circle using for loop
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
David Fariyike
am 15 Jun. 2020
Beantwortet: David Hill
am 15 Jun. 2020
I am supposed to plot the quarter circle below and call the instances from it.

for theta=0:-2.25:-90
R=.25;
xed=R*cosd(theta)
yed=R*sind(theta)
end
This code gives me the correct values but I cannot call on an instance.
theta=0:-2.25:-90;
for ii=1:length(theta)
R=.25;
xed(ii)=R*cosd(theta)
yed(ii)=R*sind(theta)
end
This code gives me incorrect values but I can call on an instance.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!