How to Compute Coordinates Values

1 次查看(过去 30 天)
Hi,
I have Co-ordinates 4 X and 4 Y different values ,so i need to compute single value.
Example : left_x = 20; left_y = 40; right_x =23;right_y =44; bottom_x=44;bottom_y=33;upper_x=122;upper_y= 87; so how to make single value any idea please let me know ?
  4 个评论
Mischa Kim
Mischa Kim 2014-2-12
So you are having two 4-by-1 vectors called x and y and you would like to compute their eucledean distance?
SAMEER ahamed
SAMEER ahamed 2014-2-13
Yes , I have two 4-by-1 vectors how i can get single value ?

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2014-2-13
sqrt(sum((x(:)-y(:)).^2))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by