how to set a lowpass filter in simulink?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to design a lowpass filter in simulink. my sampling frequency is 1000 Hz and I want to have transition band between 120 Hz and 880 Hz in order to make my reconstruction filter for DAC, as per to the following picture:
my setting for lowpass filter is in the following, but it arises the represented error:
I decided to use filter designer part in MATLAB. but in addition to the fact that it does not allow you to exceed transition beyond half of sampling frequency, it gives you error: "filter error must be 3 or more." . settings are shown in the following:
what can I do then?
any help would be appreciated.
Thanks.
0 Kommentare
Antworten (1)
Paul
am 22 Jun. 2023
Hi moh mor,
The error message from the Lowpass Filter block sounds bit misleading.
If you look on the doc page, it says that the passband and stopband edges must be less than half the Input sample rate. The Stopband edge of 880 Hz is more than half the Input sample rate of 1000 Hz; I suspect that's the problem.
Under the hood, the filter design probably normalizes everything so that 1 corresponds to half the input sample rate, hence the wording of the error message. Just guessing about that.
2 Kommentare
Paul
am 23 Jun. 2023
I'm not quite sure what this means: "use filter within 0 to Fs". I'm pretty sure you can only specify the frequency response at frequencies 0 < F < Fs/2 because the frequency response has to satsisfy certain symmetry properties at all frequencies outside that range.
Siehe auch
Kategorien
Mehr zu Single-Rate Filters finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!