Filter löschen
Filter löschen

The mArrow3 function in Matlab behaves weird

4 Ansichten (letzte 30 Tage)
Franta Cymorek
Franta Cymorek am 20 Mär. 2017
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?

Antworten (0)

Kategorien

Mehr zu Dates and Time finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by