The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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);
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.

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.