MATLAB: How to divide each row of a cell by maximum number

normalization

I have data like given below in csv file. I want to read the csv file and divide each row of a cell by using the maximum value of that corresponding row.
example
first row 2, 3, 10, 65
second row 1, 5, 4, 2
third row 8, 3, 1, 9

Best Answer

m = csvread('yourfile');
m = bsxfun(@rdivide, m, max(m, [], 2)) %divide each row by the max of the row
Note that the next version of matlab will greatly simplify that second line.
Related Question