How to create a 3D surface from a matrix

1 visualización (últimos 30 días)
Sana Ahmed
Sana Ahmed el 2 de Jul. de 2019
Comentada: Star Strider el 2 de Jul. de 2019
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?

Respuesta aceptada

Star Strider
Star Strider el 2 de Jul. de 2019
Use the surf function, or its friend, mesh (linked to in that documentation page).
  2 comentarios
Sana Ahmed
Sana Ahmed el 2 de Jul. de 2019
Works perfectly, thanks for the tip!
Star Strider
Star Strider el 2 de Jul. de 2019
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by