필터 지우기
필터 지우기

How to Compute Coordinates Values

조회 수: 2 (최근 30일)
SAMEER ahamed
SAMEER ahamed 2014년 2월 12일
답변: Walter Roberson 2014년 2월 13일
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에서 NaNs에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by