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

3 次查看(过去 30 天)
(x^2/a^2) + (y^2/b^2) = 1

回答(1 个)

Mischa Kim
Mischa Kim 2015-2-28
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)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by