cheb1mag — response of Chebyshev type 1 filter
[h2]=cheb1mag(n,omegac,epsilon,sample)
integer : filter order
real : cut-off frequency
real : ripple in pass band
vector of frequencies where cheb1mag
is evaluated
Chebyshev I filter values at sample points
Square magnitude response of a type 1 Chebyshev filter.
omegac
=passband edge.
epsilon
such that 1/(1+epsilon^2)
=passband ripple.
sample
vector of frequencies where the square magnitude
is desired.