How to Compute Coordinates Values

3 Ansichten (letzte 30 Tage)
SAMEER ahamed
SAMEER ahamed am 12 Feb. 2014
Beantwortet: Walter Roberson am 13 Feb. 2014
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 Kommentare
Mischa Kim
Mischa Kim am 12 Feb. 2014
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 am 13 Feb. 2014
Yes , I have two 4-by-1 vectors how i can get single value ?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by