Smooth a noisy plot.
3 次查看(过去 30 天)
显示 更早的评论
I want to smoothen my elevation vs distance data which is noisy and also diff(elevation)/diff(distance) = grade; grade vs distance data which is very noisy. I used smoothdata() which is oversmoothing my data and i used hampel which shows no changes. How can I vary the smoothing factor or is there any other method to do. Please let me know.
2 个评论
采纳的回答
Pratyush
2023-11-14
Hi Riddhesh,
I understand that you want ways to smoothen your noisy graphs to a user defined extent.
Here are a couple of methods that could help you:
- You can adjust the smoothing factor by using the "SmoothingFactor" parameter in the "smoothdata()" function. This allows you to control the amount of smoothing applied to your data.
- You can consider using "moving averages" technique, you can use the "smooth()" function in MATLAB.
- Or you can use Savitzky-Golay filters, for this you can use the "sgolayfilt()" function in MATLAB.
Hope this helps.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!