Normalize data

`N = normalize(A)`

`N = normalize(A,dim)`

`N = normalize(___,method)`

`N = normalize(___,method,methodtype)`

`N = normalize(___,'DataVariables',datavars)`

`N = normalize(`

returns the vectorwise
`A`

)*z*-score of the data in `A`

with
center 0 and standard deviation 1.

If

`A`

is a vector, then`normalize`

operates on the entire vector.If

`A`

is a matrix, table, or timetable, then`normalize`

operates on each column of data separately.If

`A`

is a multidimensional array, then`normalize`

operates along the first array dimension whose size does not equal 1.

`N = normalize(___,`

specifies a normalization method for either of the previous syntaxes. For example,
`method`

)`normalize(A,'norm')`

normalizes the data in
`A`

by the Euclidean norm (2-norm).

`N = normalize(___,`

specifies the type of normalization for the given `method`

,`methodtype`

)`method`

. For
example, `normalize(A,'norm',Inf)`

normalizes the data in
`A`

using the infinity norm.