Designfilt and bandstopfir adds +320dB for some reason
Good evening!
I am trying to create a set of FIR filters (using designfilt) to apply to some audio signals, and I’m having an issue.
When I try to use a ‘bandstopfir’, for some reason the whole signal is amplified around +320dB (while ‘bandpassfir’, ‘lowpassfir’ and ‘highpassfir’ are working correctly)
Here’s a quick example of the code I’m using, and I added the resulting images of each of these cases showing the issue:
clear
filterObject1 = designfilt(‘bandstopfir’,’FilterOrder’,301,…
‘CutoffFrequency1′,2000,’CutoffFrequency2′,4000,’SampleRate’,48000);
filterObject2 = designfilt(‘bandpassfir’,’FilterOrder’,301,…
‘CutoffFrequency1′,2000,’CutoffFrequency2′,4000,’SampleRate’,48000);
Here are images using fvtool to show both filter responses:
Bandstop (incorrect behaviour):
Bandpass (expected behaviour):
Is this a bug, is the installation I’m using somehow broken, or am I doing something wrong?Good evening!
I am trying to create a set of FIR filters (using designfilt) to apply to some audio signals, and I’m having an issue.
When I try to use a ‘bandstopfir’, for some reason the whole signal is amplified around +320dB (while ‘bandpassfir’, ‘lowpassfir’ and ‘highpassfir’ are working correctly)
Here’s a quick example of the code I’m using, and I added the resulting images of each of these cases showing the issue:
clear
filterObject1 = designfilt(‘bandstopfir’,’FilterOrder’,301,…
‘CutoffFrequency1′,2000,’CutoffFrequency2′,4000,’SampleRate’,48000);
filterObject2 = designfilt(‘bandpassfir’,’FilterOrder’,301,…
‘CutoffFrequency1′,2000,’CutoffFrequency2′,4000,’SampleRate’,48000);
Here are images using fvtool to show both filter responses:
Bandstop (incorrect behaviour):
Bandpass (expected behaviour):
Is this a bug, is the installation I’m using somehow broken, or am I doing something wrong? Good evening!
I am trying to create a set of FIR filters (using designfilt) to apply to some audio signals, and I’m having an issue.
When I try to use a ‘bandstopfir’, for some reason the whole signal is amplified around +320dB (while ‘bandpassfir’, ‘lowpassfir’ and ‘highpassfir’ are working correctly)
Here’s a quick example of the code I’m using, and I added the resulting images of each of these cases showing the issue:
clear
filterObject1 = designfilt(‘bandstopfir’,’FilterOrder’,301,…
‘CutoffFrequency1′,2000,’CutoffFrequency2′,4000,’SampleRate’,48000);
filterObject2 = designfilt(‘bandpassfir’,’FilterOrder’,301,…
‘CutoffFrequency1′,2000,’CutoffFrequency2′,4000,’SampleRate’,48000);
Here are images using fvtool to show both filter responses:
Bandstop (incorrect behaviour):
Bandpass (expected behaviour):
Is this a bug, is the installation I’m using somehow broken, or am I doing something wrong? designfilt, filter, bandstopfir, matlab MATLAB Answers — New Questions