File Exchange

image thumbnail

Normalizing data

version (4.27 KB) by abdulkader helwan
this code is for normalizing a matrix N*M


Updated 25 Oct 2014

View License

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

Cite As

abdulkader helwan (2020). Normalizing data (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)


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);

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux