Imagesc change of colors
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello, i have a matrix like this one:
1.0000 0.7944 0.7361 0.8205 0.4192
0.7944 1.0000 0.8663 0.6780 0.3435
0.7361 0.8663 1.0000 0.7351 0.3311
0.8205 0.6780 0.7351 1.0000 0.3555
0.4192 0.3435 0.3311 0.3555 1.0000
that is the result between the correlation of different measures.
Using imagesc i do the plot of this matrix as shown in figure:
using the command caxis i set the colorbar between [-1, 1] and the colors became fuzzy. i want to know if it is possible, and how, to set for example at index a(1,2) the color that i chose and if it is possible to use/set the same color for a different value in another matrix but at the same position (always a(1,2)).
1 Commento
Sven
il 9 Dic 2011
Salvatore, make sure you read:
Doc > Image Processing Toolbox > Introduction > Indexed Images
Then:
[newIm, colMap] = gray2ind(Im);
Will give you your colour map with a new *indexed* image.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Orange in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!