Azzera filtri
Azzera filtri

How can ı calculate the mean of an interval?

11 visualizzazioni (ultimi 30 giorni)
Ege Gurtan
Ege Gurtan il 28 Ago 2017
Risposto: KSSV il 28 Ago 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?

Risposta accettata

KSSV
KSSV il 28 Ago 2017
A = rand(300,1) ;
iwant = mean(A(200:300)) ;

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by