How to create a 3D surface from a matrix

1 次查看(过去 30 天)
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).

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by