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 vues (au cours des 30 derniers jours)
would like to plot x^2/a^2 + y^2/b^2 = R^2 in 3D space for different values of R2

Réponses (2)

Matt J
Matt J le 24 Mai 2023
Modifié(e) : Matt J le 28 Mai 2023
Simplie enough.
a=0.1;b=0.15;
fsurf(@(x,y) x.^2/a^2+y.^2/b^2) ;

Torsten
Torsten le 28 Mai 2023
Déplacé(e) : Torsten le 28 Mai 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!

Translated by