File Exchange

image thumbnail

Normalizing data

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

1 Download

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

Comments and Ratings (1)

Jan

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