How to plot a semi-circle?

8 次查看(过去 30 天)
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
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,If I want to shift the origin from (0,0) to (100,100)? Which command must I use?
Elisabetta Di Franco
This is very useful. I tried this but the semicircle is upsidedown and shifted. How can I change the code?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-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