Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

assigning a color to the same value when ploting multiple matrices

3 visualizaciones (últimos 30 días)
Paramonte
Paramonte el 16 de Sept. de 2015
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hello There
I am using imagesc to plot data sets of 16 matrices sized 256x1000 samples .each (data for one patient) I am using subplot to observe all the bi-dimensional plots at once. The max and min values of each of the matrices never match.
Then we close the program, open it again and run another batch of 16 matrices for other patient and so on..
We want that across all the patients and all the program runs, a particular color always represents the same value in the matrices , say 0.56 for yellow,
We have tried to use the version
imagesc(Cdata, clims)
where clims (stored in the program) are preset universal color limits assigned to the lower and upper color of the colormap, but this will rescale the colors in between, and we are not abble to achieve an universal correspondence between a value and a particular color. For a patient 0.56 will be redish and for another patient/run it will be yellowish, which is not accepted in our case.
Many thanks in advance!

Respuestas (1)

Mike Garrity
Mike Garrity el 16 de Sept. de 2015
You probably want the caxis function. This will let you set the top and bottom of the color scaling. If you don't do this, then it will get it from the data in your matrix, as you've seen.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by