Got some problems when trying to plot with a shifting angle in 2D Plotting ?
Ältere Kommentare anzeigen
when i try to plot from (0,0) it becomes great as the below Pic :

The Codes Are :-
hold on;grid;
ang=30;
theta=0;
for i=0:(360/ang)
xl=[0 15*cos(theta*pi/180)];
yl=[0 15*sin(theta*pi/180)];
plot(xl,yl,'-r')
theta=(i+1)*ang;
end
But when i try to change the Co-ordinates it becomes like this :-

The Codes As Below :-
hold on;grid;
ang=30;
theta=0;
for i=0:(360/ang)
xl=[5 20*cos(theta*pi/180)];
yl=[5 20*sin(theta*pi/180)];
plot(xl,yl,'-r')
theta=(i+1)*ang;
end
Thanks & Sorry for long words :D
1 Kommentar
Jan
am 16 Mär. 2013
You show us the code and the output, but do not explain, what the actual problem is. Do you expect the graphics to be symmetrical?
Akzeptierte Antwort
Weitere Antworten (1)
Haytham Mohamed
am 17 Mär. 2013
0 Stimmen
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!