MATLAB: How to split the image into blocks and then extract the features from each block

blockextract featuresextracts image featuresfeaturesfingerprintimageimage featuresimage processingImage Processing Toolboxinvariant momentsplit the image

Hello
I extracts image features (invariant moment) using this code
[filename, pathname] = uigetfile({'*.*';'*.bmp';'*.jpg';'*.gif'}, 'Pick a Degraded Fingerprint Image File');
im = imread([pathname,filename]);
figure, imshow(im);title('Fingerprint Image');
n1=invmoments(im);
How can I split the image into blocks(every block like 32×32) and then extract the features from each block?