MATLAB: Normalizing row of a matrix

matrixnormalizestatistics

Hey I have a matrix x=[ 1 0 7; 2 0 0; 3 0 9]; i would like to know if there is a way to normalize this data to a mean 0 and variance 1 according to the rows independently?

Best Answer

If you have Neural Network toolbox have a look on: mapstd