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

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?

 採用された回答

Image Analyst
Image Analyst 2012 年 8 月 31 日
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 件のコメント

SonOfAFather
SonOfAFather 2012 年 8 月 31 日
actually i didn't even think of doing that. I am looking at it now thanks.
How did you come up with the 30 for n?
Image Analyst
Image Analyst 2012 年 8 月 31 日
That was just right from the example. Play around with it to get a value that you like.
Daarshini Anbalagan
Daarshini Anbalagan 2022 年 6 月 13 日
hello. i would like to know how did you get the value that is stated in the bracket?
Torsten
Torsten 2022 年 6 月 13 日
編集済み: Torsten 2022 年 6 月 13 日
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

サインインしてコメントする。

その他の回答 (0 件)

製品

質問済み:

2012 年 8 月 31 日

編集済み:

2022 年 6 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by