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

4 views (last 30 days)
would like to plot x^2/a^2 + y^2/b^2 = R^2 in 3D space for different values of R2

Answers (2)

Matt J
Matt J on 24 May 2023
Edited: Matt J on 28 May 2023
Simplie enough.
a=0.1;b=0.15;
fsurf(@(x,y) x.^2/a^2+y.^2/b^2) ;

Torsten
Torsten on 28 May 2023
Moved: Torsten on 28 May 2023
a = 0.1;
b = 0.15;
f = @(x,y,R) (x/a).^2 + (y/b).^2 - R.^2;
fimplicit3(f)

Community Treasure Hunt

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

Start Hunting!