Effacer les filtres
Effacer les filtres

How can ı calculate the mean of an interval?

11 vues (au cours des 30 derniers jours)
Ege Gurtan
Ege Gurtan le 28 Août 2017
Réponse apportée : KSSV le 28 Août 2017
There are 300 elements in my vector (vector A). I want to calculate the mean of all the elements from 200th to 300th element. How do I do that?

Réponse acceptée

KSSV
KSSV le 28 Août 2017
A = rand(300,1) ;
iwant = mean(A(200:300)) ;

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays 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