To find the frequency content of a signal, you can use the Fast Fourier Transform (FFT) in MATLAB. Here is an example code:
main.m1299 chars62 lines
This code generates a signal with 5 Hz and 10 Hz components, interpolates it to have more samples, filters it with a bandpass filter from 6 Hz to 11 Hz, and computes the FFT of the original, interpolated and filtered signals. The frequency axis is computed based on the sampling frequency, and the magnitude spectrum of each signal is plotted.
You can modify this code to work with your own signals and filters.
gistlibby LogSnag