Plot ellipsoid between two points

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 Comments

Catalytic
Catalytic on 28 Mar 2019
Edited: Catalytic on 28 Mar 2019
An ellipse is a two-dimensional thing. How can its major axis run between 3D points? And what defines the other parameters of the ellipse, like the minor axis length?
Sorry, ellipsoid*. the minor axis length it's hand picked
Matt J
Matt J on 28 Mar 2019
Edited: Matt J on 28 Mar 2019
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.
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.

Sign in to comment.

Answers (1)

KSSV
KSSV on 28 Mar 2019

2 Comments

The link you posted is for a 2D shape. While i want to plot an ellipsoid
Have a look on sphere function in matlab.

Sign in to comment.

Asked:

on 28 Mar 2019

Commented:

on 28 Mar 2019

Community Treasure Hunt

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

Start Hunting!