How to create a 3D surface from a matrix

3 ビュー (過去 30 日間)
Sana Ahmed
Sana Ahmed 2019 年 7 月 2 日
コメント済み: Star Strider 2019 年 7 月 2 日
I have a 2D array of heights and I want to build a 3D surface that will correspond the vertical height in pixels to the location on the surface based on the index of the height in the matrix. Is it possible to make the surface continuous as well?

採用された回答

Star Strider
Star Strider 2019 年 7 月 2 日
Use the surf function, or its friend, mesh (linked to in that documentation page).
  2 件のコメント
Sana Ahmed
Sana Ahmed 2019 年 7 月 2 日
Works perfectly, thanks for the tip!
Star Strider
Star Strider 2019 年 7 月 2 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by