Borrar filtros
Borrar filtros

trplot function doesn't show one of the axis

2 visualizaciones (últimos 30 días)
Hassan Bosha
Hassan Bosha el 3 de Abr. de 2020
Respondida: Sriram Tadavarty el 4 de Abr. de 2020
i'm trying to draw three axis and rotate them via rotx and roty functions
but when i plot them one of the axis disappears
plus whenever i change the angle inside rotx the graph
rotx(angle)
R1=eye(3);
figure
R1=R1*rotx(pi/2);
trplot(R1,'axis',[0 1 -1 0 0 1])
  2 comentarios
darova
darova el 3 de Abr. de 2020
try
R1=rotx(45)*R1;
Hassan Bosha
Hassan Bosha el 4 de Abr. de 2020
i think it takes angles u r right not radians

Iniciar sesión para comentar.

Respuestas (1)

Sriram Tadavarty
Sriram Tadavarty el 4 de Abr. de 2020
Hi Hassan,
The function rotx and roty takes the input angle in degrees.
The examples and description on these pages will provide more information in the way the functions can be used.
Hope this helps.
Regards,
Sriram

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by