Exclude some values from the heatmap
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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?
Thanks!!
1 Commento
Risposte (1)
KSSV
il 13 Lug 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 Commenti
Vedere anche
Categorie
Scopri di più su Data Distribution Plots 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!