How to plot a semi-circle and if I want just the curve of of the semi-circle and the radius of the circle is 500m?
Thanks

 採用された回答

Wayne King
Wayne King 2012 年 2 月 6 日

0 投票

theta = 0:.01:pi;
y = 500*exp(1j*theta);
plot(real(y),imag(y));
axis([-750 750 -750 750]);
grid on;

4 件のコメント

Casey
Casey 2012 年 2 月 8 日
Thanks, but what if I want to slant the semicircle by 30 degree? is it possible?
Dr. Seis
Dr. Seis 2012 年 2 月 8 日
theta = (0:.01:pi)+30*pi/180;
Casey
Casey 2012 年 2 月 8 日
Thanks,If I want to shift the origin from (0,0) to (100,100)? Which command must I use?
Elisabetta Di Franco
Elisabetta Di Franco 2022 年 7 月 26 日
This is very useful. I tried this but the semicircle is upsidedown and shifted. How can I change the code?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by