Effacer les filtres
Effacer les filtres

how would i plot upper half of an ellipse in matlab using standar form?

13 vues (au cours des 30 derniers jours)
Amir
Amir le 28 Fév 2015
(x^2/a^2) + (y^2/b^2) = 1

Réponses (1)

Mischa Kim
Mischa Kim le 28 Fév 2015
With a bit of math, solve for y
a = 2; b = 3;
x = -a:0.1:a;
y = sqrt(b^2 - b^2*(x.^2/a^2));
plot(x,y)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by