1
<?xml version="1.0" encoding="UTF-8"?>
2
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="cheb1mag">
4
<refname>cheb1mag</refname>
5
<refpurpose> response of Chebyshev type 1 filter</refpurpose>
8
<title>Calling Sequence</title>
9
<synopsis>[h2]=cheb1mag(n,omegac,epsilon,sample)</synopsis>
12
<title>Arguments</title>
17
<para>integer : filter order</para>
23
<para>real : cut-off frequency</para>
29
<para>real : ripple in pass band</para>
36
vector of frequencies where <literal>cheb1mag</literal> is evaluated
43
<para>Chebyshev I filter values at sample points</para>
49
<title>Description</title>
51
Square magnitude response of a type 1 Chebyshev filter.
54
<literal>omegac</literal>=passband edge.
57
<literal>epsilon</literal>such that <literal>1/(1+epsilon^2)</literal>=passband ripple.
60
<literal>sample</literal>vector of frequencies where the square magnitude
65
<title>Examples</title>
66
<programlisting role="example"><![CDATA[
67
//Chebyshev; ripple in the passband
68
n=13;epsilon=0.2;omegac=3;sample=0:0.05:10;
69
h=cheb1mag(n,omegac,epsilon,sample);
71
xtitle('','frequencies','magnitude')
74
<refsection role="see also">
75
<title>See Also</title>
76
<simplelist type="inline">
78
<link linkend="buttmag">buttmag</link>