Applying a Moving average function smooth
조회 수: 31 (최근 30일)
이전 댓글 표시
Hello,
I have a matrix of (n*72), and due to too much noise, I have to use smooth( moving average). Moving average has to applied to each column (from 1:72) and not rows. n is no. of experiments( =5) and sensors are 72. so matrix is (5*72),so smooth has to be applied to each sensor. How should I do it? Kindly help.
댓글 수: 0
답변 (2개)
Swarooph
2017년 8월 1일
You can use the movmean function and set the dim property accordingly to get the moving average. You can also look at the smoothData function which is similar but the window length is chosen heuristically.
댓글 수: 0
참고 항목
카테고리
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!