Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
assigning a color to the same value when ploting multiple matrices
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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!
0 Kommentare
Antworten (1)
Mike Garrity
am 16 Sep. 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.
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!