I have a problem submitted below. How to plot that graph? I can't graph it. I could get wrong graphs.

 채택된 답변

Ameer Hamza
Ameer Hamza 2020년 5월 23일

0 개 추천

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

Hasan Berke Bankoglu
Hasan Berke Bankoglu 2020년 5월 23일
편집: Hasan Berke Bankoglu 2020년 5월 23일
Thank you, it's work.
Ameer Hamza
Ameer Hamza 2020년 5월 24일
I am glad to be of help!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Smoothing에 대해 자세히 알아보기

질문:

2020년 5월 23일

댓글:

2020년 5월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by