MATLAB: Matrix normalization in matlab

matrixnormalization

hi.. i want normalize a matrix (129 x 128)..please help me with matlab codes

Best Answer

To normalize a matrix such that all values fall in the range [0, 1] use
Anorm = (A - min2(A))/(max2(A) - min2(A));