want to plot ellipses with different a and b values in x^2/a^2 + y^2/b^2 = 1 in Matlab 3d plot

조회 수: 2 (최근 30일)
would like to plot x^2/a^2 + y^2/b^2 = R^2 in 3D space for different values of R2

답변 (2개)

Matt J
Matt J 2023년 5월 24일
편집: Matt J 2023년 5월 28일
Simplie enough.
a=0.1;b=0.15;
fsurf(@(x,y) x.^2/a^2+y.^2/b^2) ;

Torsten
Torsten 2023년 5월 28일
이동: Torsten 2023년 5월 28일
a = 0.1;
b = 0.15;
f = @(x,y,R) (x/a).^2 + (y/b).^2 - R.^2;
fimplicit3(f)

카테고리

Help CenterFile Exchange에서 Log Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by