How to scale a 3D meshed model plot to a certain size?
古いコメントを表示
I want to have my 3D meshed model plot scaled to a certain size. Are there any functions that can do? I am actually a rookie in Matlab. Please kindly do me a favor.Thanks a lot.
採用された回答
その他の回答 (1 件)
Mike Garrity
2014 年 9 月 24 日
Another technique you should know about (although it might be overkill for this purpose) is hgtransform. This creates an object which you parent your mesh to. This object has a Matrix property you can use to scale, rotate, and translate your mesh:
g = hgtransform
surf(peaks,'Parent',g)
set(g,'Matrix',makehgtform('scale',10))
If you do help on makehgtform, you'll find all of the different transformations you can do with this.
This approach can be very helpful when you have more than one mesh and you're trying to place them relative to each other.
カテゴリ
ヘルプ センター および File Exchange で 2-D and 3-D Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!