I have two data sets as attached with different number of realisations and i want to compare between them. So, I created their histograms to present their realisations over each other’s as in the figure. However, it is hard to see the difference as the number of frequencies is different. Anyway, to present this better; maybe normalising it. Not really sure!
load('NPV_1000.mat')
load('NPV_10000.mat')
x1 = NPV_1000;
y1 = NPV_10000;
figure
h1 = histogram(x1);
hold on
h2 = histogram(y1);
xlabel('NPV ($B)')
ylabel('Frequency')
legend('1,000','10,000')
1 Comment
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/572218-best-way-to-present-histogram-with-different-realisation-number#comment_953905
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/572218-best-way-to-present-histogram-with-different-realisation-number#comment_953905
Sign in to comment.