MATLAB: How to Compute Coordinates Values

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 ?

Best Answer

sqrt(sum((x(:)-y(:)).^2))