Effacer les filtres
Effacer les filtres

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

51 vues (au cours des 30 derniers jours)
Benutzer Name
Benutzer Name le 16 Août 2018
Modifié(e) : Stephen23 le 16 Août 2018
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 ?

Réponse acceptée

jonas
jonas le 16 Août 2018
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.

Plus de réponses (1)

Stephen23
Stephen23 le 16 Août 2018
Modifié(e) : Stephen23 le 16 Août 2018
Use view, e.g.
view(180,90)

Catégories

En savoir plus sur Graphics Object Identification dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by