surface plot: How to assign colors to specific values

2 visualizaciones (últimos 30 días)
Camille
Camille el 1 de Abr. de 2013
Hello, I have a matrix of values that I am surface-plotting with colormap jet. However, I want to specify a color (for example white) to some specific values of the matrix. Any idea of how I can proceed? Thanks

Respuestas (1)

Walter Roberson
Walter Roberson el 1 de Abr. de 2013
See the CData and CDataMapping properties of Surface plots. http://www.mathworks.com/help/matlab/ref/surface_props.html

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by