Plot a unit vector in MATLAB, given its starting point and the orientation about 3 axes
이전 댓글 표시
I have a point [x y z] and the Euler orientation angles [r p y]. How can I plot a unit vector in MATLAB starting from [x y z] in the orientation of [r p y] ?
댓글 수: 3
Adam Danz
2019년 11월 22일
If you're using a polarplot() you simply supply the angle and magnitude
polarplot(theta, rho) %theta is in radians
If you're plotting that in cartesian coordinates, convert (theta,rho) to (x,y) using,
[x,y] = pol2cart(theta,rho)
Check out the documentation for pol2cart for input requirements.
crisdeodates
2019년 11월 22일
Ah, right. Then sph2cart() would be more useful
This link looks promising, too
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
