how to normalize two graphs to each other?

8 ビュー (過去 30 日間)
studentmatlaber
studentmatlaber 2021 年 9 月 27 日
コメント済み: studentmatlaber 2021 年 10 月 2 日
I want to plot these two graphs to fit each other perfectly. Is this possible?
pd = makedist('Normal','mu',1.81576e-05,'sigma',0.00863661);
x = -0.25:0.001:0.25;
y = pdf(pd, x);
plot(x,y)
  10 件のコメント
Star Strider
Star Strider 2021 年 9 月 28 日
@studentmatlaber — It appears to be a normal distribution to me, howver since I have no idea what the data are, others (particularly the lognormal distribution or the Bernoulli distibution) could be appropriate. I doubt that there is any specific way to determine the distribution that best describes any particular set of data, other than perhaps fitting the data to different distributions to see which one works best.
.
studentmatlaber
studentmatlaber 2021 年 10 月 2 日
I got fit as student's t distribution. Thank you for your help.

サインインしてコメントする。

採用された回答

Star Strider
Star Strider 2021 年 9 月 27 日
Try something like this —
D = randn(1,500);
figure
hfh = histfit(D);
hfh(2).YData = hfh(2).YData * max(hfh(1).YData)/max(hfh(2).YData); % Scale Line To Approximate Histogram Peak
Experiment to get different results.
.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by