trplot function doesn't show one of the axis

조회 수: 6 (최근 30일)
Hassan Bosha
Hassan Bosha 2020년 4월 3일
답변: Sriram Tadavarty 2020년 4월 4일
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
darova
darova 2020년 4월 3일
try
R1=rotx(45)*R1;
Hassan Bosha
Hassan Bosha 2020년 4월 4일
i think it takes angles u r right not radians

댓글을 달려면 로그인하십시오.

답변 (1개)

Sriram Tadavarty
Sriram Tadavarty 2020년 4월 4일
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

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by