How can ı calculate the mean of an interval?

3 Ansichten (letzte 30 Tage)
Ege Gurtan
Ege Gurtan am 28 Aug. 2017
Beantwortet: KSSV am 28 Aug. 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?

Akzeptierte Antwort

KSSV
KSSV am 28 Aug. 2017
A = rand(300,1) ;
iwant = mean(A(200:300)) ;

Weitere Antworten (0)

Kategorien

Mehr zu Time Series finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by