Hi, I have seen similar questions but I am getting stuck altering the code for what I want. I have a matrix of (64 x 18144), each row is a met station and each column is a 15 minute data measurement – I want to convert this to hourly data for each station – so I want to have an output matrix of (64 x 4536). I have seen some solutions but I don't have the 'tools' they require. Any help/ideas would be very much appreciated! ðŸ™‚

# MATLAB: How to take an average every four columns

averaging rows

###### Related Question

- Average of 3d matrix
- How to create filename with variable within loop
- Split large matrix in smaller matrices
- HOw to divide an Image into sub images
- Leaping loop with constant rows for each identity
- Look up corresponding element in a matrix
- Means of multiple vectors from different matrices
- I have a 256×4 matrix. I want to divide the matrix into 256 matrices of 4 elements each. I am having a lot of difficulties. I tried using the mat2cell fn but it does not accept variable values. I would have to write ‘1’ 256 times. Any suggestions
- Reshape the Matrix to complex number

## Best Answer