座標データからある点​と他5点との距離の平​均を総当たりで求めた​い。

6 views (last 30 days)
Ryohei Nakahata
Ryohei Nakahata on 22 Jan 2021
Edited: Ryohei Nakahata on 22 Jan 2021
6つの点の情報を持つ座標データでxとyが交互に1列ずつ合計12列、31行の数値配列を使っています。
この数値配列からある点から他5つの点との距離の平均を三平方の定理とmeanを用いて求めたいと考えています。
そして、それぞれの6つの点に対して他5つの点について、総当たりで距離の平均を求め、6列31行の数値配列もしくはcell 配列にとして出力したいと考えています。しかし、どのような方法で、総当たりで計算できるのかわかりません。
どなたかご教示いただければ幸いです。

Answers (0)

Categories

Find more on Automotive in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!