필터 지우기
필터 지우기

distance between any two points

조회 수: 3 (최근 30일)
matlab coder
matlab coder 2020년 11월 21일
답변: Image Analyst 2020년 11월 21일

채택된 답변

Image Analyst
Image Analyst 2020년 11월 21일
Use input() or ginput() to ask the user for the two points.
[x, y] = ginput(2);
Instead of the square root symbol, use sqrt():
d = sqrt((x1-x2)^2 + (y1-y2)^2)
extract x1 and x2 from x or else use x(1) and x(2).

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Formatting and Annotation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by