normalize hist3 plot
31 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Fernando
am 11 Jul. 2019
Kommentiert: Fernando
am 11 Jul. 2019
Is it possible to normalize a hist3 plot so the vertical axis does not have counts but rather probabilities so the volume under the surface integrates to 1? For example,
X = sortrows(randi(10,100,2));
hist3(X)
results in a bivariate histogram of the columns of X but the vertical axis is counting the number of times each combination occurs. Instead, is it possible to change the vertical axis so it represents the fraction of times a combination occurs?
Thanks.
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 11 Jul. 2019
Use histogram2 instead of hist3. As stated in the "Alternative Functionality" section of the hist3 documentation page, histogram2 allows you to specify the 'Normalization' parameter.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Histograms 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!