Issue with probability density function
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I am trying to plot the histogram along with pdf. I am already having the script for histogram, could someone please help me to implement pdf in the below script.
histogram(Output,'Normalization', 'probability','FaceColor','black');
saveas(gcf, sprintf('Histogram.bmp'))
savefig(gcf, sprintf('Histogram'))
0 件のコメント
回答 (1 件)
Torsten
2023 年 2 月 8 日
編集済み: Torsten
2023 年 2 月 8 日
histogram(Output,'Normalization', 'pdf');
2 件のコメント
Torsten
2023 年 2 月 8 日
The empirical distribution is what you get from the above command.
In order to get a proper distribution curve, you will have to tell MATLAB which underlying distribution your measurement data follow and determine the parameters of this distribution (e.g. using MATLAB's "mle").
Look at the example
Determine Underlying Probability Distribution
under
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!