필터 지우기
필터 지우기

The mArrow3 function in Matlab behaves weird

조회 수: 4 (최근 30일)
Franta Cymorek
Franta Cymorek 2017년 3월 20일
As you can see in the picture, I'm using the mArrow3 function to show plane's orientation. But, sometimes any dart behaves weird.Or the cones merge together, in conclusion, it does not behave the same all the times.
The code I'm using:
drawnow;
xExt = abs(diff(get(gca, 'XLim')));
yExt = abs(diff(get(gca, 'YLim')));
zExt = abs(diff(get(gca, 'ZLim')));
mArrow3([0 0 0],[xExt / 1, 0, 0], 'stemWidth', 2,'color','red','facealpha', 0.1);
mArrow3([0 0 0],[0, yExt / 1, 0], 'stemWidth', 2,'color','red','facealpha',0.1);
mArrow3([0 0 0],[0, 0, zExt / 1], 'stemWidth', 2,'color','red','facealpha',0.1);
text(xExt, 0, 0, 'Vx','FontSize',12);
text(0, yExt, 0, 'Vy','FontSize',12);
text(0, 0, zExt, 'Vz','FontSize',12);
Could you please give me a hint?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by