Jump to content
Sign in to follow this  
Gabriel Justo

Script to evaluate butterworth parameters

Recommended Posts

Hello everyone,

 

I would like to share with the community a script that allows the user to test different parameters of a filter to see if the filtered signal is good or not.

 

From line 3 to 16 you can edit the parameters to change both the signal and the filter behaviour. After the script finishes it is possible to check the original and the filtered signal, as wall as the FFTs.

 

Highlighted in yellow are the frequencies of the signal and the plots obtained:

image.thumb.png.083601908f561655e2e58b91074620af.png

 

PS: It's also possible to use filtfilt instead of filter to keep the signal phase
image.thumb.png.91d8a9920d70d89d2d47c55b81193605.png

 

butterworth.oml

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...