How to access normalized data values from a normalized heatmap

3 ビュー (過去 30 日間)
Systematically Neural
Systematically Neural 2017 年 12 月 7 日
回答済み: Duncan Lilley 2017 年 12 月 13 日
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.

採用された回答

Duncan Lilley
Duncan Lilley 2017 年 12 月 13 日
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 件)

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by