The utilized functioncellfun applies a function to each element of a cell array. First it is used to compute the maximum value of the 9 features of each element. The max(max()) call then finds the maximum value across all elements. Finally, cellfun is used again to divide the arrays at each element of the cell vector by the found maximum value, by utilizing ananonymous function.
The .mat file contains a variable named Record which is a cell array. Each entry is something-by-3, minimum 3 x 3 and at most 20 x 3. In total there are 1128286 entries. If you are looking for a 1128286 x 3 numeric output then:
It writes a white rectangle into the middle of an array. Presumably it's black/false/0 in the 50 pixel wide border around the mask image. It can be used to blacken the gray scale image either inside or outside the mask area.
Best Answer