andrew257
Member level 2
plotting frequency ads
Hi All
I wish to plot various frequency responses it matlab all on the same plot.
I can plot them individually but not together, can anyone reccomend how to do this.
This is my code:
b=fir1(n,wn,rectwin(n+1),'noscale');
[h,w]=freqz(b,a,512);
plot(w/pi,(abs(h);
i wish to plot the same responses but only for different windows. e.g compare rectangular,triangular and hamming windows using the same cuttoff frequency and order.
cheers
Andrew
Hi All
I wish to plot various frequency responses it matlab all on the same plot.
I can plot them individually but not together, can anyone reccomend how to do this.
This is my code:
b=fir1(n,wn,rectwin(n+1),'noscale');
[h,w]=freqz(b,a,512);
plot(w/pi,(abs(h);
i wish to plot the same responses but only for different windows. e.g compare rectangular,triangular and hamming windows using the same cuttoff frequency and order.
cheers
Andrew