How can ı calculate the mean of an interval?

5 次查看(过去 30 天)
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?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Time Series 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by