Rotate around one axis in 3d plot

조회 수: 18 (최근 30일)
Adrian Szatmari
Adrian Szatmari 2018년 1월 29일
댓글: KSSV 2018년 1월 30일
Dear People,
I would like to know how to it is possible to freeze only one axis in a 3D plot, so to allow only "cylindrical rotations" with the mouse, i.e. rotations around only one axis. The function "rotate3d" seems to rotate around all axes, whereas "rotate" seems to apply to 2D plots. In particular, I would like it to work with "pcshow".
Any advice? Thanks in advance!
Adrian
  댓글 수: 3
Adrian Szatmari
Adrian Szatmari 2018년 1월 30일
Thanks for looking into it. Yeah, for 3d objects / clouds, as soon as you grab the plot with the mouse it starts to go all over the place... Very annoying.
KSSV
KSSV 2018년 1월 30일
You can have a look on affine transformations. You can define your own rotation matrix and do what you want.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by