Vertical 3D to Horizontal

2 ビュー (過去 30 日間)
Muhammad RSMY
Muhammad RSMY 2024 年 10 月 7 日
コメント済み: Muhammad RSMY 2024 年 10 月 8 日
I have plot using scatter3 (50x50x10), as shown it is vertically, how to make it horizontally
sorry for my broken english
Thanks
  2 件のコメント
Les Beckham
Les Beckham 2024 年 10 月 7 日
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 2024 年 10 月 8 日
Thanks @Les Beckham it work

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

回答 (1 件)

Walter Roberson
Walter Roberson 2024 年 10 月 7 日
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 件のコメント
Muhammad RSMY
Muhammad RSMY 2024 年 10 月 8 日
Thanks @Walter Roberson, I will try it

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

カテゴリ

Help Center および File ExchangeObject Containers についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by