Instructions for Applying a Butterworth Filter Using Matla In this document the steps necessary for applying a Butterw orth lter to Mstationary data are given
119K - views

Instructions for Applying a Butterworth Filter Using Matla In this document the steps necessary for applying a Butterw orth lter to Mstationary data are given

Obtaining the dual in SPlus 1 Run the data through the Mstationary program on SPlus This program is available through the Department of Statist ics at SMU It is located at the following website httpfacultysmu eduhgray and instructions on using the M

Tags : Obtaining the dual
Download Pdf

Instructions for Applying a Butterworth Filter Using Matla In this document the steps necessary for applying a Butterw orth lter to Mstationary data are given




Download Pdf - The PPT/PDF document "Instructions for Applying a Butterworth ..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.



Presentation on theme: "Instructions for Applying a Butterworth Filter Using Matla In this document the steps necessary for applying a Butterw orth lter to Mstationary data are given"— Presentation transcript:


Page 1
Instructions for Applying a Butterworth Filter Using Matla In this document, the steps necessary for applying a Butterw orth filter to M-stationary data are given. Obtaining the dual in S-Plus: 1. Run the data through the M-stationary program on S-Plus. This program is available through the Department of Statist ics at SMU. It is located at the following website. http://faculty.smu .edu/hgray, and instructions on using the M-stationary library are incl uded. 2. Be sure to export the dual by clicking on the Results tab and then on the Export D ual button. This will

allow the user to save the data in the appropriate location. Using Matlab to Butterworth lowpass filter the data: 3. Import the data into Matlab by following the instructions on Matlabs Import Wizard. For the purposes here, suppose the dual dataset is called series1 in Matlab. 4. The following command will create a second order lowpass B utterworth filter. [b,a]=butter(2,.1); For other orders, import the order number in place of the 2. 5. To apply the filter to series1 , use filt=filter(b,a,series1); 6. To save the filtered data in ASCII format, the command is save

series1f2.out filt -ASCII; The file will be saved as series1f2.out in ASCII format. For a quick reference for the command in step 4 pertaining to e ach filter type, see Table 1.
Page 2
Table 1: Quick Reference for Matlab Butterworth Filters Filter Type Command Comments Lowpass [b,a]=butter(2,.1); Applies a second order filter that passes all frequencies below 0.10 Highpass [b,a]=butter(2,.1,high); Applies a second order filter that passes all frequencies above 0.10 Bandpass [b,a]=butter(2,[.1,.2]); Applies a second order filter that passes all

frequencies between 0.10 and 0.20 Bandstop [b,a]=butter(2,[.1,.2],stop); Applies a second order filter that stops all frequencies between 0.10 and 0.20