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

3 ビュー (過去 30 日間)
Amir
Amir 2015 年 2 月 28 日
回答済み: Mischa Kim 2015 年 2 月 28 日
(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 Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by