MATLAB: Dear all, how to select the values for k and f, of savitzky-golay filter

signalSignal Processing Toolbox

Dear all, how to select the values for k and f, of savitzky-golay filter?

Best Answer

You pick them to give the signal you want. There is no one right value for all situations. It's a judgment call. A longer frame width will take more points into consideration when fitting the polynomial and give a smoother curve. A higher polynomial will more accurately "hug" the actual/noisy training data, while a lower polynomial order will give a smoother, less "huggy" fit.
Related Question