How to calculate moving standard deviation in a matrix?

3 ビュー (過去 30 日間)
Andrea Finocchiaro
Andrea Finocchiaro 2015 年 10 月 13 日
編集済み: Manolis Michailidis 2015 年 10 月 13 日
Hi Guys, I have got a matrix :378x9. I need to calculate the moving standard deviation with a window size of 180(starting from row one). Can somebody help me please?

回答 (1 件)

Manolis Michailidis
Manolis Michailidis 2015 年 10 月 13 日
  7 件のコメント
Andrea Finocchiaro
Andrea Finocchiaro 2015 年 10 月 13 日
I tried but i failed again. I change the question: do you know how to calculate the standard deviation of the matrix of each column till row 180?I think I ll do it per 199 times so
Manolis Michailidis
Manolis Michailidis 2015 年 10 月 13 日
編集済み: Manolis Michailidis 2015 年 10 月 13 日
for kk=1:size(X,2) % kk is your column index
s(1:180,kk)=movingstd(X(1:180,kk),180,'f');
end

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by