(To be removed) Vector normalization along specified dimension
The dsp.Normalizer
System
object™ performs vector normalization along rows, columns, or specified dimension.
To perform vector normalization:
Create the dsp.Normalizer
object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects? (MATLAB).
returns a
normalization System
object, norm
= dsp.Normalizernorm
, that normalizes the input over each column by
the squared 2-norm of the column plus a bias term of 1e-10 used to protect against
divide-by-zero.
returns a normalization object, norm
= dsp.Normalizer(Name,Value
)norm
, with each property set to the
specified value.
To use an object function, specify the
System
object as the first input argument. For
example, to release system resources of a System
object named obj
, use
this syntax:
release(obj)
Note: If you are using R2016a or an
earlier release, replace each call to the object with the equivalent step
syntax. For example, obj(x)
becomes
step(obj,x)
.
norm = dsp.Normalizer; x = magic(3); y = norm(x)
y = 3×3
0.0899 0.0093 0.0674
0.0337 0.0467 0.0787
0.0449 0.0841 0.0225
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 sample-based 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.