how to normalize two graphs to each other?
23 views (last 30 days)
studentmatlaber on 27 Sep 2021
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);
Star Strider on 27 Sep 2021
Try something like this —
D = randn(1,500);
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.