How to get the normalized data from the histogram
3 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone, I have normalized a histogram for a vector contains around 19000 samples, after applying the normalization,I want to extract these data points and do some calculations that depends on the normalized data, my quistion is, is there any documintation about that ? I need to use these 19000 normalized samples not the original samples, Thanks.
0 件のコメント
回答 (1 件)
Sulaymon Eshkabilov
2021 年 7 月 5 日
See this doc (check for normalization under property of histogram): https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.histogram-properties.html?s_tid=srchtitle
Normalization of hist data can be done in a relatively simple way, e.g.:
[H, xdata] = histogram(DATA,Bins);
dx = abs(diff(xdata(1:2));
Area = sum(dx*H);
Hnor = H/Area;
%%
There are nice fcn files in MATLAB exchange:
https://www.mathworks.com/matlabcentral/fileexchange/22802-normalized-histogram?s_tid=srchtitle
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!