how can i rotate a figure without using the figure window but using code

조회 수: 27 (최근 30일)
Benutzer Name
Benutzer Name 2018년 8월 16일
댓글: DEVI 2024년 9월 11일
Hello everybody,
I have a .fig file with an object. Now I want to rotate and translate this object in the figure but I don't want to use the buttons from the figure window. I tried to write the code for this problem but I had no success until now. Do I have to use the "set" function ?

채택된 답변

jonas
jonas 2018년 8월 16일
You can change the 'view' to rotate, for example
set(gca,'view',[90 90])
You can then work with the 'xlim' and 'ylim' to zoom or translate.

추가 답변 (1개)

Stephen23
Stephen23 2018년 8월 16일
편집: Stephen23 2018년 8월 16일
Use view, e.g.
view(180,90)

카테고리

Help CenterFile Exchange에서 Interactions, Camera Views, and Lighting에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by