How to plot a semi-circle?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Casey
le 6 Fév 2012
Commenté : Elisabetta Di Franco
le 26 Juil 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
0 commentaires
Réponse acceptée
Wayne King
le 6 Fév 2012
theta = 0:.01:pi;
y = 500*exp(1j*theta);
plot(real(y),imag(y));
axis([-750 750 -750 750]);
grid on;
4 commentaires
Elisabetta Di Franco
le 26 Juil 2022
This is very useful. I tried this but the semicircle is upsidedown and shifted. How can I change the code?
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Fit Postprocessing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!