An ellipsoid with particular axes.

2 次查看(过去 30 天)
Peter Laslo
Peter Laslo 2013-10-22
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!

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Vector Fields 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by