Vertical 3D to Horizontal

6 vues (au cours des 30 derniers jours)
Muhammad RSMY
Muhammad RSMY le 7 Oct 2024
Commenté : Muhammad RSMY le 8 Oct 2024
I have plot using scatter3 (50x50x10), as shown it is vertically, how to make it horizontally
sorry for my broken english
Thanks
  2 commentaires
Les Beckham
Les Beckham le 7 Oct 2024
Can't you just exchange the Z data with either X or Y in the call to scatter3? For example, instead of
scatter3(X, Y, Z)
change it to
scatter3(Z, Y, X)
Muhammad RSMY
Muhammad RSMY le 8 Oct 2024
Thanks @Les Beckham it work

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 7 Oct 2024
Instead of parenting your scatter3() to an axes (even if only by default):
Create a hgtransform object that is parented to the axes. Then parent the scatter3() to the hgtransform object. Set the Matrix property of the hgtransform object to the transformation matrix you want to use; it is typically easiest to create the Matrix property by using makehgtform
  1 commentaire
Muhammad RSMY
Muhammad RSMY le 8 Oct 2024
Thanks @Walter Roberson, I will try it

Connectez-vous pour commenter.

Catégories

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