Why does circle transform into a elipse when i plot a line and a circle ?

Here is my code: " xc=2;yc=1; r=1;
x2=0:5; y2=x2/2; plot(x2,y2);axis square hold on;
teta=-pi:0.01:pi; x=r*sin(teta)+xc; y=r*cos(teta)+yc; plot(x,y);axis square
plottools " and here is the result:
Please tell me how to not change the circle into elipse? Thank in advance !

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Polar Plots에 대해 자세히 알아보기

태그

질문:

2015년 10월 6일

답변:

2015년 10월 6일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by