How to calculate moving standard deviation in a matrix?
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
Manolis Michailidis
2015-10-13
7 个评论
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 Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!