Using smoothing techniques plot graph.
조회 수: 8 (최근 30일)
이전 댓글 표시
I have a problem submitted below. How to plot that graph? I can't graph it. I could get wrong graphs.

댓글 수: 0
채택된 답변
Ameer Hamza
2020년 5월 23일
This is a moving average filter. You can use movmean(): https://www.mathworks.com/help/releases/R2020a/matlab/ref/movmean.html with 'EndPoints' option set to 'discard'
movmean(y, 3, 'Endpoints', 'discard') % first filter
movmean(y, 5, 'Endpoints', 'discard') % Second filter
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Smoothing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!