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 CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by