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

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

Antworten (0)

Kategorien

Mehr zu Automotive finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!