Extract surface coordinates from ellipsoid function

조회 수: 19 (최근 30일)
LW942
LW942 2017년 10월 25일
댓글: LW942 2017년 10월 27일
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일
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개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by