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

65 ビュー (過去 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 件のコメント
DEVI
DEVI 2024 年 9 月 11 日
Thank you so much. This command works very well.

サインインしてコメントする。

その他の回答 (1 件)

Stephen23
Stephen23 2018 年 8 月 16 日
編集済み: Stephen23 2018 年 8 月 16 日
Use view, e.g.
view(180,90)

カテゴリ

Help Center および File Exchange3-D Scene Control についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by