how to plot an arrow given yaw/pitch/roll
이전 댓글 표시
What's the easiest way to plot a simple arrow of arbitrary dimensions given a starting position (x,y,z) and euler angles (roll,pitch,yaw)?
채택된 답변
추가 답변 (1개)
Art
2015년 8월 6일
0 개 추천
댓글 수: 2
Joel Sande
2016년 4월 12일
Hi, How to do this from 1 point pointing in 3 different directions ?
zhaozhong chen
2018년 5월 25일
a late answer. Just type
h = quiver3(pt(1),pt(2),pt(3), dir(1),dir(2),dir(3));
%from the first answer and then
%then create two dir, dir 2 and dir 3
hold on
h2 = quiver3(pt(1),pt(2),pt(3), dir2(1),dir2(2),dir2(3))
h3 = quiver3(pt(1),pt(2),pt(3), dir3(1),dir3(2),dir3(3))
hold off %so you'll have 3 directions from the same points
xlim([-1 1])
ylim([-1 1])
zlim([-1 1])
카테고리
도움말 센터 및 File Exchange에서 Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

