Using smoothing techniques plot graph.
2 次查看(过去 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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!