How can I normalize my filter?
Mostrar comentarios más antiguos
Hi,
I am applying a low pass filter to my signal and I should make sure the transfer function of my filter is one. How can I check it?
If the filter is not normalized, how can I normalize it?
I am learning about filters and I appreciate any help.
%lowpass filter
sig = MY SIGNAL;
sig_length = 5000001; % my signal length
fs = 1e13 % sampling rate
fc = 3e9; % cutt off frequency
order = 4;
wo = 2*pi*fc;
[z,p,k] = besself(order, wo,'low'); % zero, pole and gain form
% Convert to digital fileter
[zd,pd,kd] = bilinear(z,p,k,fs); % z-domain zero/pole/gain
[sos,g] = zp2sos(zd,pd,kd); % convert to second order section
filteredSignal = filtfilt(sos, g, sig);
5 comentarios
Star Strider
el 30 de Mzo. de 2022
It is generally not possible to convert a Bessel filter to a discrete version.
From the documentation:
‘The besself function does not support the design of digital Bessel filters.’
Compare it with the transfer function version of the analogue filter with freqs.
.
Star Strider
el 4 de Abr. de 2022
Editada: Star Strider
el 4 de Abr. de 2022
I do not advise using a Bessel filter as a discrete filter for the reasons I previously stated.
‘So, is it wrong if I use bessel filter for my simulation?’
Yes.
Use any other design and then use filtfilt to do the actual filtering. since it will make all discrete filter realisations have a phase-neutral response.
EDIT — See the Digital section of the Wikipedia article on the Bessel filter for an appropriate discussion.
Amy Lg
el 6 de Abr. de 2022
Star Strider
el 7 de Abr. de 2022
Right.
In spite of everything I wrote in my answer (now deleted) and the observation in the Wikipedia article (and every signal processing textbook I consulted on this), you are still going to try to use the bilinear function to discretise a Bessel filter!
That is not going to work, and no amount of wishful thinking on your (or anyone else’s) part is ever going to make it work!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Analog Filters en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



