I have a 27x38x8760 matrix where the 27x38 represents a grid and the 8760 hours of the year. I would like to make daily avarages for the grid so that my resulting matrix is 27x38x365. I was using reshape for 2 dimensional matrix but is there a posibily to use it also for 3d? kind regards Matthias