回答 (3 件)

SYED IMTIAZ ALI SHAH
SYED IMTIAZ ALI SHAH 2019 年 7 月 13 日

1 投票

Your question need more elaboration, however this might help

1 件のコメント

TheRealTonyStark
TheRealTonyStark 2019 年 7 月 13 日
Thankyou I got my answer.

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

Star Strider
Star Strider 2019 年 7 月 13 日

1 投票

Try this (partially copied from the documentation page Connecting Equal Values with Isosurfaces):
x = linspace(-10, 10, 50);
[X,Y,Z] = meshgrid(x);
V = (X.^2 + Y.^2 + 2*Z.^2);
figure
hp = patch(isosurface(X,Y,Z,V,10))
isonormals(X,Y,Z,V,hp)
hp.FaceColor = 'r';
hp.EdgeColor = 'none';
camlight left;
lighting gouraud
grid on
view(-20,30)
producing:
how to plot ellipsoid - 2019 07 13.png
Also see the documentation on the isosurface function.

2 件のコメント

qilin guo
qilin guo 2021 年 4 月 11 日
Very good! It helps me! Thank you very much!
Star Strider
Star Strider 2021 年 4 月 11 日
My pleasure!

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

Matt J
Matt J 2021 年 4 月 11 日
編集済み: Matt J 2021 年 4 月 11 日

0 投票

You can also use,
which has the convenience of letting you specify yaw/pitch/roll angles for the ellipsoid.
[Center,ABC,YPR]=deal([0 2 1] , [6 2 1], [60 40 0]); %center, radii, yaw/pitch/roll
obj=ellipsoidalFit.groundtruth([],Center,ABC,YPR);
plot(obj, {'FaceColor', 'm'});
xlabel X; ylabel Y; zlabel Z

カテゴリ

製品

タグ

質問済み:

2019 年 7 月 13 日

コメント済み:

2021 年 4 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by