フィルターのクリア

How can ı calculate the mean of an interval?

11 ビュー (過去 30 日間)
Ege Gurtan
Ege Gurtan 2017 年 8 月 28 日
回答済み: KSSV 2017 年 8 月 28 日
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 Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by