normr

Normalize rows of matrix

Syntax

normr(M)

Description

normr(M) normalizes the rows of M to a length of 1.

Examples

m = [1 2; 3 4];
normr(m)
ans =
      0.4472     0.8944
      0.6000     0.8000

See Also

Introduced before R2006a