How to smoothen a plot in MATLAB?

前端 未结 5 973
南方客
南方客 2021-01-31 10:37

I have some 9000 points that are plotted on a graph:

[Full resolution]

\"alt

Actually, the plot is n

5条回答
  •  情歌与酒
    2021-01-31 11:08

    FFT isn't a bad idea, but it's probably overkill here. Running or moving averages give generally poor results and should be avoided for anything besides late homework (and white noise).

    I'd use Savitzky-Golay filtering (in Matlab sgolayfilt(...)). This will give you the best results for what you are looking for - some local smoothing while maintaining the shape of the curve.

    -Paul

提交回复
热议问题