Borrar filtros
Borrar filtros

The mArrow3 function in Matlab behaves weird

4 visualizaciones (últimos 30 días)
Franta Cymorek
Franta Cymorek el 20 de Mzo. de 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?

Respuestas (0)

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by