I am a complete beginner at MATLAB and signal analysis so I don't really understand the fourier mathematics behind signal filtering. I took my Ipod Touch and used an app that records the accelerometer data (at 50Hz sampling rate) to a CSV and I loaded that CSV data into matlab. I am now trying to apply a low pass filter to the signal to get rid of the noise that occurs when from small changes in acceleration (so I am left with just the large signals of acceleration).
I read a bunch about signal filtering in matlab today and I own the signal processing toolbox, but I am still very confused on what certain variables mean. For instance the function filter(b,a,data)
keeps coming up and I know that a
and b
are vectors of coefficients but I have no idea how these effect the filter or how to create these values based on what i know about my signal/what I want done with it.
Where should I go to learn the basics of signal processing if I don't have a strong background with Fourier analysis? And how should I go about creating my low pass filter in matlab? Thanks!
Here is the sample data I am working with.
I tried just winging it and making a=[1 -0.9]
b=1
based on some other stackexchange posts bout low pass filters in matlab and it seems to have done something but it also seems to have magnified my signal 3-fold. What exactly did I do by applying a filter with those values?