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="wfir">
4 <refname>wfir</refname>
5 <refpurpose> linear-phase FIR filters</refpurpose>
8 <title>Calling Sequence</title>
9 <synopsis>[wft,wfm,fr]=wfir(ftype,forder,cfreq,wtype,fpar)</synopsis>
12 <title>Arguments</title>
18 string : <literal>'lp','hp','bp','sb'</literal> (filter type)
26 Filter order (pos integer)(odd for <literal>ftype='hp'</literal> or <literal>'sb'</literal>)
34 2-vector of cutoff frequencies (<literal>0<cfreq(1),cfreq(2)<.5</literal>) only <literal>cfreq(1)</literal> is used when <literal>ftype='lp'</literal> or <literal>'hp'</literal>
42 Window type (<literal>'re','tr','hm','hn','kr','ch'</literal>)
50 2-vector of window parameters. Kaiser window <literal>fpar(1)>0 fpar(2)=0</literal>. Chebyshev window <literal>fpar(1)>0, fpar(2)<0</literal> or <literal>fpar(1)<0, 0<fpar(2)<.5</literal>
57 <para>time domain filter coefficients</para>
63 <para>frequency domain filter response on the grid fr</para>
69 <para>Frequency grid</para>
75 <title>Description</title>
77 Function which makes linear-phase, FIR low-pass, band-pass,
78 high-pass, and stop-band filters
79 using the windowing technique.
80 Works interactively if called with no arguments.