Average of 3d matrix
24 views (last 30 days)
I have 3D matrix with dimension (61,57,273) the 273 is daily time. 39 weeks has 273 days.
I want to do a weekly average overtime to get (61,57,39).
result = reshape(data,61,57,39,7);
Data_mean = nanmean(result,4);
I am not sure about the reshaping. Any help would be appreciated to correct or suggest another way to do the average.