how to calculate euclidean norm of two points?
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
KALYAN ACHARJYA
2019-11-19
编辑:KALYAN ACHARJYA
2019-11-19
As you mentioned ||x-y||^2
(abs(x-y))^2
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!