Effacer les filtres
Effacer les filtres

plotting an ellipsoild with an equation that is not set equal to one variable

2 vues (au cours des 30 derniers jours)
I thought this would be simple and straight forward but i really don't have a clue here. I need to plot an Ellipsoid with the eqution:
1 = (x^2)/4 + (y^2)/9 + (z^2)
Thanks, any help would be great. will "mupad" be helpful here?

Réponse acceptée

Image Analyst
Image Analyst le 31 Août 2012
Did you look up ellipsoid in the help? When or if you do, you'll find your answer with very very slight modifications to their demo:
[x, y, z] = ellipsoid(0,0,0, 2,3,1, 30);
surfl(x, y, z)
colormap copper
axis equal
  4 commentaires
Daarshini Anbalagan
Daarshini Anbalagan le 13 Juin 2022
hello. i would like to know how did you get the value that is stated in the bracket?
Torsten
Torsten le 13 Juin 2022
Modifié(e) : Torsten le 13 Juin 2022
It's just an example and not related to the original question.
To plot this ellipsoid, the code should be
(Center: (0,0,0), Half-axis: (sqrt(4),sqrt(9),sqrt(1)) = (2,3,1))
[x, y, z] = ellipsoid(0,0,0, 2,3,1, 30);
surfl(x, y, z)
colormap copper
axis equal

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by