MATLAB: Hello i’m new use matlab. i would like to use savitzky golay to smooth the data. I have the data in .txt format. Can you help me how to plot the data and use the savgol filteriing? Thank you

savitzky-golay

Savitzky Golay Filtering

Best Answer

You can use sgolayfilt() function from Signal Processing Toolbox. For reading data from txt file you can use textscan(). For plotting you can use plot() function. For a more comprehensive example, please attach a sample dataset.
Related Question