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 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.
fsurf(@(x,y) x.^2/a^2+y.^2/b^2) ;

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;


Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!