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="ja" xml:id="fsfirlin">
4
<refname>fsfirlin</refname>
5
<refpurpose>FIRの設計,線形位相フィルタ, 周波数標本法e</refpurpose>
9
<synopsis>[hst]=fsfirlin(hd,flag)</synopsis>
17
<para>指定する周波数応答標本のベクトル</para>
23
<para>値は1 または 2で, 1形または2形設計を選択します</para>
30
周波数グリッドにおける近似的な連続応答を指定するベクトル
45
<programlisting role="example"><![CDATA[
47
//Example of how to use the fsfirlin macro for the design
48
//of an FIR filter by a frequency sampling technique.
50
//Two filters are designed : the first (response hst1) with
51
//abrupt transitions from 0 to 1 between passbands and stop
52
//bands; the second (response hst2) with one sample in each
53
//transition band (amplitude 0.5) for smoothing.
55
hd=[zeros(1,15) ones(1,10) zeros(1,39)];//desired samples
56
hst1=fsfirlin(hd,1);//filter with no sample in the transition
57
hd(15)=.5;hd(26)=.5;//samples in the transition bands
58
hst2=fsfirlin(hd,1);//corresponding filter
59
pas=1/prod(size(hst1))*.5;
60
fg=0:pas:.5;//normalized frequencies grid
61
plot2d([1 1].*.fg(1:257)',[hst1' hst2']);
64
hd=[0*ones(1,15) ones(1,10) 0*ones(1,39)];//desired samples
65
hst1=fsfirlin(hd,1);//filter with no sample in the transition
66
hd(15)=.5;hd(26)=.5;//samples in the transition bands
67
hst2=fsfirlin(hd,1);//corresponding filter
68
pas=1/prod(size(hst1))*.5;
69
fg=0:pas:.5;//normalized frequencies grid
72
plot2d(fg(1:n)',hst2',[3],"000");
75
<refsection role="see also">
77
<simplelist type="inline">
79
<link linkend="ffilt">ffilt</link>
82
<link linkend="wfir">wfir</link>