how to obtain a vector contains a mean of other vector

1 vue (au cours des 30 derniers jours)
bay rem
bay rem le 16 Déc 2015
Commenté : bay rem le 16 Déc 2015
i have an array describes x and y values of 3 points
v=[26 196 27 196 28 196]
i wanna have as a result a vector that :
v1= [mean of(26,27,28) mean of (196,196,196)]
thank you for the help

Réponse acceptée

Mohammad Abouali
Mohammad Abouali le 16 Déc 2015
v=[26 196 27 196 28 196];
v1=[mean(v(1:2:end)) mean(v(2:2:end))]
v1 =
27 196
You really need to have a look at MATLAB Primer.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by