%a
w = 0.44*pi;w1 = 0.3*pi;w2 = 0.7*pi;l=10;a=2/l;nn=0:l;ww = -pi:(pi/100):pi; %-- omega hat
h = a*cos(w*nn);h1 = a*cos(w1*nn);h2 = a*cos(w2*nn);hh=conv(h,h1);hh1=conv(hh,h2);hhh=freqz(ww,1,hh1)plot(ww,abs(hhh(ww)))
This is my code, i got error at last line and i don't know how to fix that. Can anyone tell me how to fix it. Thanks
Best Answer