필터 지우기
필터 지우기

How do I filter my data points without using smoothdata?

조회 수: 8 (최근 30일)
Thomas Nell
Thomas Nell 2018년 12월 12일
편집: TADA 2018년 12월 12일
Hey guys,
I'm trying to smooth the signal from a bunch of data points in time, but I'm not allowed to use any commands from the signal processing toolbox (namely smoothdata and filter). I have 10 data points for both time and signal (t = [0 1 2 3 4 5 6 7 8 9]) (y = [4 7 5 8 6 9 6 9 3 5]), I need to end up with the exact same number of data points in the end as in the beginning, just smoothed out. How do i go about this???
Thank you very much and kind regards,
Thomas Nell

채택된 답변

TADA
TADA 2018년 12월 12일
편집: TADA 2018년 12월 12일
Some smoothing methods rely on fitting a moving curve to a small window of your data (Savitzky–Golay, LOESS, etc.)
The simplest method however relys on a moving average, you can do it iteratively, and for each value give a new value based on the average of a window around it

추가 답변 (0개)

카테고리

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