How to know how much I rotated a figure?

3 vues (au cours des 30 derniers jours)
Salad Box
Salad Box le 18 Jan 2023
Modifié(e) : Salad Box le 18 Jan 2023
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?

Réponse acceptée

DGM
DGM le 18 Jan 2023
You should be able to query and set the camera position using view();
[az el] = view(); % get position
% ...
view(az,el); % set position
  1 commentaire
Salad Box
Salad Box le 18 Jan 2023
Modifié(e) : Salad Box le 18 Jan 2023
Spot on! Thank you.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Object Properties 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