How to access normalized data values from a normalized heatmap
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Systematically Neural
le 7 Déc 2017
Réponse apportée : Duncan Lilley
le 13 Déc 2017
I normalized a heatmap using h.ColorScaling='scaledrows' as seen - https://www.mathworks.com/help/matlab/ref/heatmap.html
Can I access all these normalized data? I am wanting to order them as they are normalized, but scattered and I want to order them numerically, not by name or category.
0 commentaires
Réponse acceptée
Duncan Lilley
le 13 Déc 2017
There is not a direct way to access this normalized data. However, it is relatively straightforward to calculate. Consider the following code:
data = h.ColorData;
maxes = max(data, [], 2);
data_normalized = data ./ maxes;
After executing these commands, each row of the "data_normalized" matrix will be normalized.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Distribution Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!