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

조회 수: 21 (최근 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 CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by