フィルターのクリア

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 Center および File ExchangeFormatting and Annotation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by