how to set a lowpass filter in simulink?

8 ビュー (過去 30 日間)
moh mor
moh mor 2023 年 6 月 22 日
コメント済み: Paul 2023 年 6 月 23 日
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.

回答 (1 件)

Paul
Paul 2023 年 6 月 22 日
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 件のコメント
moh mor
moh mor 2023 年 6 月 23 日
Thanks. Your first point was correct. Anyway, is not there any option to use filter within 0 to Fs? this makes my filter more relaxed.
Paul
Paul 2023 年 6 月 23 日
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.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSingle-Rate Filters についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by