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
abdulkader helwan (2020). Normalizing data (https://www.mathworks.com/matlabcentral/fileexchange/48258-normalizing-data), MATLAB Central File Exchange. Retrieved .
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);