Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Drawing ellipsoid
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Alon Rozen

Posts: 1
Registered: 7/14/13
Drawing ellipsoid
Posted: Jul 14, 2013 6:29 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,

I have an ellipsoid which is represented by a center - [x0 y0 z0]
and a symmetrical 3x3 matrix - A.
I know that using the Matlab function:
[Eig_Vec, Eig_Val] = eig(A)
I will get the size of the ellipsoid axes on the diagonal of Eig_Val and the direction of the axes in the columns of Eig_Vec (respectively).

In order to plot the ellipsoid I use the commands:
[X,Y,Z] =ellipsoid(x0,y0,z0,Eig_1,Eig_2,Eig_3);
surf(X,Y,Z);
Were Eig_1,Eig_2,Eig_3 are on the diagonal of Eiv_Val.

This will create an ellipsoid which is parallel to the axes.
My problem is - how do I use the eigenvectors information to rotate the ellipsoid so it will represents the original one?
I know I have to use the Matlab command 'rotate' but I couldn't figure out how exactly.

Any help will be much appreciated.
Alon



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.