MATLAB: Matrix extraction from image

matrix

I want to extract a matrix 5*5 Matrix from 256*256 image … Then I have to do some modification in the 5*5… Then I apply the same modification in every 5*5 block of 256*256… How to do it…
Related Question