如何求点于点之间的距离。
古いコメントを表示
在一个平面内随机分布两组点,如何计算这两组点中每个点之间的距离?这个程序出了错,不知道该如何更改:
Xs=rand(25,1);
Ys=rand(25,1);
Xt=rand(5,1);
Yt=rand(5,1);
d_k=sqrt((Xs-Xt)^2+(Ys-Yt)^2);
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で 循环及条件语句 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!