%MAT33.M FIR BANDPASS WITH 33 COEFFICIENTS USING MATLAB Fs=10 kHz
nu=[0 0.1 0.15 0.25 0.3 1];    %normalized frequencies
mag=[0 0 1 1 0 0];             %magnitude at normalized frequencies 
c=remez(32,nu,mag);            %invoke remez algorithm for 33 coeff
bp33=c';                       % coeff values transposed
save matbp33.cof bp33 -ascii;  %save in ASCII file with coefficients
[h,w]=freqz(c,1,256);          %frequency response with 256 points
plot(5000*nu,mag,w/pi,abs(h))  %plot ideal magnitude response

