Needing to average rows by 5 instead of 10 columns, what exactly do you mean by that? How are you expecting to get to an output matrix with size 53x101?
As far as I understand you want the average of each 5 rows by 10 columns hence the expected output size of 53x101. You can do that with the block processing as follows:
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.