Branko Celler
unread,Jun 3, 2016, 8:36:09 PM6/3/16You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
USING MATLAB 2016B
% Design 10th order Elliptic filter
% designfilt Designs a DIGITAL Filter
d = designfilt('bandpassiir','FilterOrder',20, ...
'PassbandFrequency1',0.15,'PassbandFrequency2',0.6, ...
'PassbandRipple',1, ...
'StopbandAttenuation1',60,'StopbandAttenuation2',60, ...
'SampleRate',fs);
% BELOW WORKS
fvtool(d)
freqz(d)
filtfilt(d,data)
% Attempting to extract Numerator and Denominator coefficients
% this does NOT work! WHY NOT??
[numz,denz] = tf(d);
freqz(numz,denz);
filtfilt(numz,denz,data);
How else do I extract Numerator and Denominator coefficients of my filter design?
I don't understand why the above does not work!!