%Test 1 Fs = 44100 x = randn(1,44100); % Signal = randn (fs*dur,1) shall generate 1 channel signal with certain sampling frequency and duration [b1,a1]=fourbandEQ(30,0,1, 300,0,1, 1000,0,1, 5000,0,1, Fs); y = filter (b1,a1,x); % y = filter(b,a,X) Y is output signal, X is input signal, b is array of %denominator coefficients , a is numerator
I can’t run your code, but the easiest way to plot the transfer function is to divide the fft of the output by the fft of the input, then do the appropriate plots:
Fn = Fs/2; tf = fft(y)./fft(x); Fv = linspace(0, 1, length(tf)/2+1)*Fn; Ix = 1:length(Fv); figure(1) subplot(2,1,1) plot(Fv, abs(tf(Ix))) grid ylabel('Amplitude') subplot(2,1,2) plot(Fv, angle(tf(Ix))) grid xlabel('Frequency') ylabel('Phase')
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.