필터 지우기
필터 지우기

how to set a lowpass filter in simulink?

조회 수: 4 (최근 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 CenterFile Exchange에서 Filter Design에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by