How to design a filter to pass frequencies between 0 and 12Hz
Mostra commenti meno recenti
Hello, I trying to design a filter in order to allow only certain frequency to pass the filter. I have a set of data and I am only interested in frequencies between 0 and 12Hz.
My approach was following:
filtCoeff = designfilt('bandstopiir', 'FilterOrder', 20,...
'HalfPowerFrequency1',11, 'HalfPowerFrequency2',498,...
'SampleRate', Fs);
acc_x = filter(filtCoeff,acc_x_unfiltered);
acc_y = filter(filtCoeff,acc_y_unfiltered);
Is this correct? Can someone help me?
Thank you in advance!
Risposta accettata
Più risposte (1)
Sriram Tadavarty
il 30 Ott 2020
0 voti
Hi Hishan,
You can confirm if your filter designed meets the requirements, by looking at the frequency response of the filter using FVTool or freqz or any equivalent.
For easy way of designing a filter with required specifications, i suggest to use Filter Designer. This is a GUI interface showing the frequency response there itself.
Hope this helps.
Regards,
Sriram
Categorie
Scopri di più su Digital Filter Design in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!