Extract surface coordinates from ellipsoid function

Hi
I'm trying to model a rotating ellipsoid and extract the line-of-sight velocity from specific points on the surface.
Ive created an ellipse using the ellipsoid() function. I now need to extract the XYZ values of specified points on the surface. the [x, y, z] returned by ellipsoid() are in a square matrix however rather than an nx3 set of points which is what I need.

 採用された回答

David Goodmanson
David Goodmanson 2017 年 10 月 25 日

1 投票

Hi LW,
After you get x,y, and z, try
A = [x(:),y(:),z(:)]

1 件のコメント

LW942
LW942 2017 年 10 月 27 日
Thanks! I had to use horzcat to combinre them also

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

その他の回答 (0 件)

カテゴリ

質問済み:

2017 年 10 月 25 日

コメント済み:

2017 年 10 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by