Grayscale Image with z-dimension as Grayscale value

2 visualizaciones (últimos 30 días)
Vinit Nagda
Vinit Nagda el 15 de Jul. de 2017
Comentada: Walter Roberson el 15 de Jul. de 2017
I have data comprising pixel location (x,y) and corresponding height (z) at particular pixel location. I want to plot 2D grayscale Image with my z dimension as grayscale value across varying xy positions.

Respuestas (1)

Walter Roberson
Walter Roberson el 15 de Jul. de 2017
surf(z, 'edgecolor', 'none')
colormap(gray(256))

Community Treasure Hunt

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

Start Hunting!

Translated by