Instructions
Choose a cutoff frequency for the filter. There are many different types of filters in Matlab. In this example a Butterworth low-pass filter will be used (it allows frequencies below the cut-off frequency through the filter). In the Matlab command window type:
The * symbol should be replaced with the chosen cutoff frequency.
Choose a sampling rate. This is the rate at which the input signal is sampled. The higher the sampling rate, the more accurate the representation of the input signal. In the Matlab command window type:
The * symbol should be replaced with the chosen sampling rate.
Choose the order of the Butterworth filter. The higher the order, the steeper the transition from pass-band (frequencies allowed past) to blocked band (frequencies not allow past). In the Matlab command window type:
The * symbol should be replaced with the chosen order (1-6).
Run the Butterworth signal by typing:
"[b14 a14]=butter(order,(w/fn),'low');"
The variable b14 and a14 will be populated with the filter response characteristics.
"fc=*"
"fs=*"
"order=*"