hi all I just want to be sure about this small monthly averaging code
I=1; for i=1: length(x)/30; y(i)=mean(x(I:I+29)); L(i)=min(x(I:I+29)); U(i)=max(x(I:I+29)); I=I+29; end
where x is data matrix (365 day)
thank you
average
I=1; for i=1: length(x)/30; y(i)=mean(x(I:I+29)); L(i)=min(x(I:I+29)); U(i)=max(x(I:I+29)); I=I+29; end
Best Answer