Clear Filters
Clear Filters

An ellipsoid with particular axes.

3 views (last 30 days)
Peter Laslo
Peter Laslo on 22 Oct 2013
Answered: Image Analyst on 23 Oct 2013
Hello,
I can generate an ellipsoid using the coordinate axes as the major and minor axes using the ellipsoid function - http://www.mathworks.com/help/matlab/ref/ellipsoid.html
Given three vectors - (v1,v2,v3), (w1,w2,w3) and (z1,z2,z2)
I want to rotate it so that it has 1) A major axis along the line through (v1,v2,v3) and it goes through (v1,v2,v3) 2) A minor axis along the line through (w1,w2,w3) and it goes through (w1,w2,w3) 3) A minor axis along the line through (z1,z2,z3) and it goes through (z1,z2,z3)
I am trying to use the rotate function http://www.mathworks.com/help/matlab/ref/rotate.html but so far I haven't had success.
Can anyone help me out? Thanks!

Answers (1)

Image Analyst
Image Analyst on 23 Oct 2013
See if my ellipse rotation demo is of any use to you. It's attached below.

Categories

Find more on Vector Fields in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!