I have the same problem that was presented in this question, but it's solution doesn't work for me and I don't know why.
I have sound (wav) data with strong fundamental frequency (225 Hz, sample rate 96 000, amplitude ca. 0.2) and I want to design passband filter to eliminate just the f0. Using fdatool I have designed desired passband filter (from 220 to 230 Hz, -10 dB at 210 and 240 Hz) and exported SOS and G.
- If I use
sosfilt, the data are OK, but not scaled correctly (amplitudes ate30or higher). - If I use
sos2tfand thenfiltorfiltfilt, the data are still OK, but still incorrectly scaled (amplitudes ate-19).
What am I doing wrong?