this code is for normalizing a matrix N*M,in which the elements in each column are divided by the max value of that column
You do not need the image processing toolbox for this script. It is not useful, that you provide hard coded input data and the output is written to an XLS file with a fixed name.
The computations are performed more efficient by this line:
out = bsxfun(@rdivide, in, max(in, , 1);