MATLAB Answers

mina
0

what mean l2 norm??

Asked by mina
on 2 Mar 2013
what mean l2 norm??

  1 Comment

Azzi Abdelmalek
on 2 Mar 2013
Have you read the help?

Sign in to comment.

Tags

2 Answers

Wayne King
Answer by Wayne King
on 2 Mar 2013
 Accepted 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))

  1 Comment

mina
on 2 Mar 2013
thank you so much

Sign in to comment.


Albert
Answer by Albert
on 2 Mar 2013

The euclidean distance is computed as a l2-norm, indeed.

  1 Comment

mina
on 2 Mar 2013
thank you so much

Sign in to comment.