MATLAB Answers

0

how to calculate euclidean norm of two points?

Asked by Khushi Bhatti on 19 Nov 2019 at 14:38
Latest activity Edited by KALYAN ACHARJYA on 19 Nov 2019 at 14:58
My question is to find euclidean norm of two points
||x-y||^2
here is my code for this:
%let x=2, y=3
norm(x-y)
%answer in command window
1
kindly tell me if I am using right command! or should i also take square root?

  0 Comments

Sign in to comment.

1 Answer

Answer by KALYAN ACHARJYA on 19 Nov 2019 at 14:47
Edited by KALYAN ACHARJYA on 19 Nov 2019 at 14:58

As you mentioned ||x-y||^2
(abs(x-y))^2
If not, please do read here the theory and tell us the expression

  0 Comments

Sign in to comment.