How to know how much I rotated a figure?

조회 수: 3 (최근 30일)
Salad Box
Salad Box 2023년 1월 18일
편집: Salad Box 2023년 1월 18일
Hi,
Matlab plotted my data points like this:
Then I manually rotated the figure to this:
Is there a way to record the rotation details, such as angles, moving forwards/backward, left/right, up/down, I don't know, just anything describing the rotation? So that I can automatically apply the same rotation to other figures so that objects in all my figures will facing the same way?

채택된 답변

DGM
DGM 2023년 1월 18일
You should be able to query and set the camera position using view();
[az el] = view(); % get position
% ...
view(az,el); % set position
  댓글 수: 1
Salad Box
Salad Box 2023년 1월 18일
편집: Salad Box 2023년 1월 18일
Spot on! Thank you.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by