Plot ellipsoid between two points

7 次查看(过去 30 天)
I have two 3D vectors representing trajectories in 3 dimensions of two points. For each time point I want to plot an ellipsoid where its major axis lies between those 2 points.
  4 个评论
Matt J
Matt J 2019-3-28
编辑:Matt J 2019-3-28
If it's an ellipsoid, then it has 2 minor axis lengths. Will these both the same? If not, how are the minor axes orientations defined? It would be best if you just describe the complete input to the plot.
Salvatore Lacava
Salvatore Lacava 2019-3-28
So the general purpose is to fit an ellipsoid to approximate the shape of a sample I am recording from. I will do that by handpicking the lenght of all the axis at the beginning of the time series, those measures will be constant throught the time series. Regarding the orientation of the minor axis, that is determined by another 3D point that with the other two points determines a plance on which the the major and one minor axis lie on. The other minor axis is perpendicular to this plane.

请先登录,再进行评论。

回答(1 个)

KSSV
KSSV 2019-3-28
  2 个评论
Salvatore Lacava
Salvatore Lacava 2019-3-28
The link you posted is for a 2D shape. While i want to plot an ellipsoid
KSSV
KSSV 2019-3-28
Have a look on sphere function in matlab.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by