%function definition line goes here for k=1:no_days day_flow(k)=mean(hr_flow(k*24-23:k*24)); day(k)=k; end