Info
此问题已关闭。 请重新打开它进行编辑或回答。
assigning a color to the same value when ploting multiple matrices
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Mike Garrity
2015-9-16
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 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!