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 visualizaciones (últimos 30 días)
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 comentario
Honglei Chen
Honglei Chen el 18 de Feb. de 2015
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?

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by