Vertical 3D to Horizontal

조회 수: 7 (최근 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

카테고리

Help CenterFile Exchange에서 Object Containers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by