Sandi2000
Junior Member level 2
I have a coefficients of FIR filter ,found it by 'fir1' function, in general, i want to convert a digital filter to transfer function with apply this formula :
The method :
Design a 48th-order FIR filter passband , with a cutoff frequency w=[0.35 0.65]. Compute the coefficients of the equivalent transfer function.
The error found:
How can i solve this error ? how can i find a transfer function of fir filter with this specifications?
The method :
Design a 48th-order FIR filter passband , with a cutoff frequency w=[0.35 0.65]. Compute the coefficients of the equivalent transfer function.
Code:
% Coefficients of fir filter
c = fir1(48,[0.35 0.65]);
%Filter Transfer Function
[b,a] = tf(c);
The error found:
Error using tf
Too many output arguments.
How can i solve this error ? how can i find a transfer function of fir filter with this specifications?