Error while using a iir flter in matlab gui callback function:: Error using fdesign.ab​stracttype​/ellip (line 17) Frequency specifications must be between 0 and 2000.

조회 수: 2 (최근 30일)
Code for the filter is here::
It is a bandpass filter
function Hd = Filter33
% All frequency values are in Hz.
Fs = 22050; % Sampling Frequency
Fstop1 = 760; % First Stopband Frequency
Fpass1 = 900; % First Passband Frequency
Fpass2 = 2500; % Second Passband Frequency
Fstop2 = 2950; % Second Stopband Frequency
Astop1 = 80; % First Stopband Attenuation (dB)
Apass = 1; % Passband Ripple (dB)
Astop2 = 80; % Second Stopband Attenuation (dB)
match = 'both'; % Band to match exactly
% Construct an FDESIGN object and call its ELLIP method.
h = fdesign.bandpass(Fstop1, Fpass1, Fpass2, Fstop2, Astop1, Apass, ... Astop2, Fs);
Hd = design(h, 'ellip', 'MatchExactly', match);
freqz(Hd)
% [EOF]
  댓글 수: 1
Honglei Chen
Honglei Chen 2015년 2월 18일
The script you posted worked fine for me, no error. What is the callback function you are talking about? What are the parameters when you call it in the callback?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Filter Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by