how to calculate euclidean norm of two points?

4 visualizzazioni (ultimi 30 giorni)
Khushi Bhatti
Khushi Bhatti il 19 Nov 2019
Modificato: KALYAN ACHARJYA il 19 Nov 2019
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?

Risposte (1)

KALYAN ACHARJYA
KALYAN ACHARJYA il 19 Nov 2019
Modificato: KALYAN ACHARJYA il 19 Nov 2019
As you mentioned ||x-y||^2
(abs(x-y))^2
If not, please do read here the theory and tell us the expression

Categorie

Scopri di più su Statistics and Machine Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by