Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 353 Bytes

sgolayfilt.rst

File metadata and controls

17 lines (11 loc) · 353 Bytes

Savitzky-Golay Filter (sgolayfilt)

f = 1;
x = 0:(f/100):f*5;
plot(x,sin(2*pi*f*x)+rand(size(x)))
hold on
plot(x,sgolayfilt(sin(2*pi*f*x)+rand(size(x)),2,21),'r-','LineWidth',2)