How to plot a semi-circle?

11 visualizaciones (últimos 30 días)
Casey
Casey el 6 de Feb. de 2012
Comentada: Elisabetta Di Franco el 26 de Jul. de 2022
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

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by