Package: dsp
Vector normalization along specified dimension
The Normalizer
object performs vector normalization
along rows, columns, or specified dimension.
To perform vector normalization:
Define and set up your normalization object. See Construction.
Call step
to perform vector normalization
according to the properties of dsp.Normalizer
. The
behavior of step
is specific to each object in the
toolbox.
H = dsp.Normalizer
returns
a normalization object, H
, that normalizes the input
over each column by the squared 2norm of the column plus a bias term
of 1e10 used to protect against dividebyzero.
H = dsp.Normalizer('
returns a normalization object, PropertyName
',PropertyValue
,
...)H
,
with each property set to the specified value.

Type of normalization to perform Specify the type of normalization to perform as 

Real number added in denominator to avoid division by zero Specify the real number to add in the denominator to avoid division by zero. The default is 1e10. This property is tunable. 

Dimension to operate along Specify whether to normalize along 

Numerical dimension to operate along Specify the onebased value of the dimension over which to normalize.
The value of this parameter cannot exceed the number of dimensions
in the input signal. This property applies when 
clone  Create normalization object with same property values 
getNumInputs  Number of expected inputs to step method 
getNumOutputs  Number of outputs of step method 
isLocked  Locked status for input attributes and nontunable properties 
release  Allow property value and input characteristics changes 
step  Normalize input along specified dimension 
Normalize a matrix:
hnorm = dsp.Normalizer; x = magic(3); y = step(hnorm, x);
This object implements the algorithm, inputs, and outputs described on the Normalization block reference page. The object properties correspond to the block parameters, except:
Treat samplebased row input as column —
The block allows you to input a row vector and normalize the row vector
as a column vector. The normalization object always normalizes along
the value of the Dimension
property.
The normalization object does not support the Minimum and Maximum options for data output.