Exclude some values from the heatmap
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hey guys!!!
I want to exclude the main diagonal values from the following heatmap, does anyone know how to take it?
ps. I especifically would like to let white the main diagonal, is it possible?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/330953/image.png)
Thanks!!
1 Kommentar
Antworten (1)
KSSV
am 13 Jul. 2020
Let M be your matrix of size n*n. To replace diagonal values with NaN:
M = rand(11) ;
M(1:(n+1):end) = NaN ;
0 Kommentare
Siehe auch
Kategorien
Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!