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 vue (au cours des 30 derniers jours)
Mean Point in planar Graph

Réponse acceptée

Lilian Darracq
Lilian Darracq le 25 Avr 2017
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 commentaire
Tommaso Di Noto
Tommaso Di Noto le 25 Avr 2017
Thank you. I knew the function "mean" but my doubt was: "is this the correct way to find the mean coordinate?"

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Just for fun dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by