iirnotch filter and q-factor
Ältere Kommentare anzeigen
Dear all, I'm using an iirnotch or iircomb filter to remove 60Hz from my recorded signal. Following matlab help it is easy to implement the code
fs = 20000; fo = 60; q = 35; bw = (fo/(fs/2))/q;
[b,a] = iircomb(fs/fo,bw,'notch'); % Note type flag 'notch'
fvtool(b,a);
But I really do not understand what the quality factor q is for. Matlab usually recommend a setting with 35. But what exactly do I set there? I'm really looking forward to a bit of information... Thanks a lot! Peter
Akzeptierte Antwort
Weitere Antworten (1)
rs
am 19 Mär. 2026 um 21:58
0 Stimmen
wo = 60/(Fs/2); % normalized frequency
bw = 10/(Fs/2); % bandwidth
[b,a] = iirnotch(wo, bw);
notchfilt = filtfilt(b, a, sig);
figure; plot(notchfilt);
Kategorien
Mehr zu Audio Processing Algorithm Design finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!