how to make a curve smooth ??

조회 수: 3 (최근 30일)
mary
mary 2013년 11월 1일
댓글: Image Analyst 2013년 12월 7일
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

답변 (2개)

Image Analyst
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
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
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!

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by