| DSP Blockset | Search  Help Desk |
| Normalization | See Also |
Normalize an input vector by the 2-norm.
Library
Vector Functions, in Math FunctionsDescription
The Normalization block normalizes the input using the vector 2-norm or squared 2-norm, as specified by the Norm parameter. When 2-norm is selected, the output is given by
y = u ./ (norm(u) + b) % equivalent MATLAB codeThe normalization bias, b, is typically chosen to be a small positive constant (e.g., 1e-10) that prevents potential division by zero. When Squared 2-norm is selected, the output is given by
y = u ./ (norm(u).^2 + b) % equivalent MATLAB codeIn both cases the output is the same size as the input. A matrix input,
u, is treated as a vector, u(:).
Dialog Box



See Also
Matrix Scalingnorm (MATLAB)