Description

Examples

//Chebyshev; ripple in the stopbandn=10;omegar=6;A=1/0.2;sample=0.0001:0.05:10;h2=cheb2mag(n,omegar,A,sample);plot(sample,log(h2)/log(10),'frequencies','magnitude in dB')//Plotting of frequency edgesminval=(-max(-log(h2)))/log(10);plot2d([omegar;omegar],[minval;0],[2],"000");//Computation of the attenuation in dB at the stopband edgeattenuation=-log(A*A)/log(10);plot2d(sample',attenuation*ones(sample)',[5],"000")