Hi,
I want to obtain the normalized curve for the following program on the same histogram curve.
Kindly help me.
clear all;close all;DailyaverageData = xlsread('exceltomatlab.xlsx','Sheet1', 'B2:B2290');n = length(DailyaverageData);binranges = 0:0.1:1;binwidth=.1;binCtrs = 0.05:0.1:0.95; counts = hist(DailyaverageData,binCtrs);[bincounts] = histc(DailyaverageData,binranges);%figure;
%bar(binranges,bincounts/n,'histc');
%xlim([0 1]);
prob = counts /n;%H = bar(binranges,bincounts/n,'histc');
H = bar(binCtrs,prob,'hist');
Best Answer