MATLAB: What mean l2 norm?

MATLAB

what mean l2 norm??

Best Answer

The l2 norm of a vector is the square root of the sum of the absolute values squared
X = randn(8,1);
norm(X,2)
The above is equal to
sqrt(sum(abs(X).^2))