Clear Filters
Clear Filters

How to plot a semi-circle?

4 views (last 30 days)
Casey on 6 Feb 2012
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?

Accepted Answer

Wayne King
Wayne King on 6 Feb 2012
theta = 0:.01:pi;
y = 500*exp(1j*theta);
axis([-750 750 -750 750]);
grid on;
Casey on 8 Feb 2012
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 on 26 Jul 2022
This is very useful. I tried this but the semicircle is upsidedown and shifted. How can I change the code?

Sign in to comment.

More Answers (0)


Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!