Sunday, June 22, 2008

i want a circle not ellipse


theta = 0:0.1:2*pi ;
x = cos(theta);
y = sin(theta);
plot(x,y);
shg

this should show u a circle instead it shows u an ellipse.. not that the program is wrong or something !

just write

axis equal

at the command prompt and all should be ok

No comments: