How to fit a smooth curve inside an edge while plotting a 2D figure
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Image Analyst
2017-1-3
You can smooth the y values:
ySmoothed = conv(y, ones(1, 51), 'same');
Change the 51 depending on whether you want more or less smoothing, but keep it an odd integer.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Smoothing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!