how to make a curve smooth ??
1 次查看(过去 30 天)
显示 更早的评论
if i have a result like a curve with sharp edges and i want to make the curve smooth how do i do this?? e.g like curves of snr vs. ber
0 个评论
回答(2 个)
Image Analyst
2013-11-2
You can use conv() (in base MATLAB), or sgolay() (in the Signal Processing Toolbox) or other functions. For example
windowSize = 9; % or whatever - bigger # = more smoothing.
smoothedSignal = conv(yourSignal, ones(1, windowSize)/windowSize, 'same');
1 个评论
Image Analyst
2013-12-7
smoothedSignal is certainly smoother than what you started with. Why do you say it is not? Can you post your data proving it is not smoother?
sixwwwwww
2013-11-1
Dear Mary, you can use smooth function for this purpose. See the following link for more information: http://www.mathworks.de/de/help/curvefit/smooth.html. I hope it helps. Good luck!
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!