I have a series of points in a xy plane representing repetitive movements at a specific time frame. How can I find the mean coordinate? Can I simply use: xmean= x1+x2+...+xn/#points and ymean=y1+y2+.../#points or there is a proper Matlab Function?

1 回表示 (過去 30 日間)
Mean Point in planar Graph

採用された回答

Lilian Darracq
Lilian Darracq 2017 年 4 月 25 日
There is a function matlab called mean which does the work, just type :
X = [x1,x2..., xn]
x_mean = mean(X);
Y = [y1,y2..., yn]
y_mean = mean(Y);
  1 件のコメント
Tommaso Di Noto
Tommaso Di Noto 2017 年 4 月 25 日
Thank you. I knew the function "mean" but my doubt was: "is this the correct way to find the mean coordinate?"

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by