Effacer les filtres
Effacer les filtres

The mArrow3 function in Matlab behaves weird

4 vues (au cours des 30 derniers jours)
Franta Cymorek
Franta Cymorek le 20 Mar 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?

Réponses (0)

Catégories

En savoir plus sur Dates and Time dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by