Hello I would like to use Savitzky-Golay Filtering to smooth my data. I would like apply the example given below by MATLAB to my data, however; I do not know the data format of the example. How can I apply it my data consisting of two columns (The second column will be smoothed)? Thank you.
load count.dat
c = smooth(count(:));
C1 = reshape(c,24,3);
subplot(3,1,1)
plot(count,':');
hold on
plot(C1,'-');
title('Smooth C1 (All Data)')