Smooth a noisy plot.

조회 수: 7 (최근 30일)
Riddhesh
Riddhesh 2023년 11월 14일
댓글: Riddhesh 2023년 11월 19일
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
Chunru
Chunru 2023년 11월 14일
try different "methods" and "window" sizes with smoothdata.
DGM
DGM 2023년 11월 16일
Being able to move answers between threads would be reaally handy right about now.

댓글을 달려면 로그인하십시오.

채택된 답변

Pratyush
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:
  1. 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.
  2. You can consider using "moving averages" technique, you can use the "smooth()" function in MATLAB.
  3. Or you can use Savitzky-Golay filters, for this you can use the "sgolayfilt()" function in MATLAB.
Hope this helps.
  댓글 수: 1
Riddhesh
Riddhesh 2023년 11월 19일
Thank you. That helped me alot.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Calendar에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by