Standard deviation of a 1D array for a particular range

2 ビュー (過去 30 日間)
Saravanakumar Chandrasekaran
Saravanakumar Chandrasekaran 2021 年 1 月 2 日
I would like to compute the standard deviation of my 1D array only for a particular range of indices.
my_array = [1 2 3 4 5 6 7 8 9 10];
i need to find Standard deviation for the elements of index 3 to 5 and 8 to 9.
i.e standard deviation of 3,4,5,8,9

採用された回答

Walter Roberson
Walter Roberson 2021 年 1 月 2 日
std(my_array([3:5,8:9]))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by