Vertical 3D to Horizontal
1 次查看(过去 30 天)
显示 更早的评论
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
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)
回答(1 个)
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 Center 和 File Exchange 中查找有关 Object Containers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!