1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>latc2tf</title>
<style type="text/css" media="all">
@import url("scilab_code.css");
@import url("xml_code.css");
@import url("c_code.css");
@import url("style.css");
</style>
</head>
<body>
<div class="manualnavbar">
<table width="100%"><tr>
<td width="30%">
<span class="previous"><a href="lar2rc.html"><< lar2rc</a></span>
</td>
<td width="40%" class="center">
<span class="top"><a href="section_cc2bc01c47967d47fcf3507a91d572ba.html">FOSSEE Signal Processing Toolbox</a></span>
</td>
<td width="30%" class="next">
<span class="next"><a href="latcfilt.html">latcfilt >></a></span>
</td>
</tr></table>
<hr />
</div>
<span class="path"><a href="index.html">FOSSEE Signal Processing Toolbox</a> >> <a href="section_cc2bc01c47967d47fcf3507a91d572ba.html">FOSSEE Signal Processing Toolbox</a> > latc2tf</span>
<br /><br />
<div class="refnamediv"><h1 class="refname">latc2tf</h1>
<p class="refpurpose">Convert lattice filter parameters to transfer function coefficients</p></div>
<div class="refsynopsisdiv"><h3 class="title">Calling Sequence</h3>
<div class="synopsis"><pre></pre></div></div>
<div class="refsection"><h3 class="title">Description</h3>
<p class="para">[num,den] = latc2tf(k,v)
Finds the transfer function of the IIR filter from the lattice
coefficients k and ladder coefficients v.
[num,den] = latc2tf(k,'iiroption')
Finds the transfer function of the allpass or allpole (specified by
the iiroption flag) IIR filter.
num = latc2tf(k,'firoption')
Finds the transfer function of the FIR filter from the lattice
coefficients k. The firoption flag specifies the type of the FIR
filter (can be 'min, 'max', or 'FIR')</p>
<p class="para">Parameters:
k - double - vector
Lattice coefficients
Lattice coefficients for FIR/IIR filter. Can be real or complex.
v - double - vector
Ladder coefficients
Ladder coefficients for IIR filters. Can be real or complex.
iiroption - string flag - 'allpole', or 'allpass'
Specification of the type if IIR filter
firoption - string flag - 'min', 'max', or 'FIR' (default)
Speficication of the type of FIR filter</p>
<p class="para"></p></div>
<div class="refsection"><h3 class="title">Examples</h3>
<div class="programlisting"><table border="0" width="100%"><tr><td width="98%"><pre class="scilabcode"><span class="scilabnumber">1</span><span class="scilabopenclose">)</span> <span class="scilabid">FIR</span> <a class="scilabmacro" href="scilab://filter">filter</a>
<span class="scilabid">k1</span> <span class="scilaboperator">=</span> <span class="scilabopenclose">[</span><span class="scilabnumber">1</span><span class="scilaboperator">/</span><span class="scilabnumber">2</span> <span class="scilabnumber">1</span><span class="scilaboperator">/</span><span class="scilabnumber">2</span> <span class="scilabnumber">1</span><span class="scilaboperator">/</span><span class="scilabnumber">4</span><span class="scilabopenclose">]</span><span class="scilabdefault">;</span>
<span class="scilabopenclose">[</span><span class="scilabid">num1</span><span class="scilabdefault">,</span><span class="scilabid">den1</span><span class="scilabopenclose">]</span> <span class="scilaboperator">=</span> <span class="scilabid">latc2tf</span><span class="scilabopenclose">(</span><span class="scilabid">k1</span><span class="scilabopenclose">)</span><span class="scilabdefault">;</span></pre></td><td valign="top"><a href="scilab://scilab.execexample/"><img src="ScilabExecute.png" border="0"/></a></td><td valign="top"><a href="scilab://scilab.editexample/"><img src="ScilabEdit.png" border="0"/></a></td><td></td></tr></table></div></div>
<div class="refsection"><h3 class="title">See also</h3>
<ul class="itemizedlist"><li class="member"><a href="latcfilt.html" class="link">| tf2latc</a></li>
<li class="member"><a href="scilab://References" class="link">References</a></li>
<li class="member"><a href="scilab://[1]" class="link">J.G. Proakis, D.G. Manolakis, Digital Signal Processing,</a></li>
<li class="member"><a href="scilab://3rd" class="link">ed., Prentice Hall, N.J., 1996, Chapter 7.</a></li>
<li class="member"><a href="scilab://[2]" class="link">S. K. Mitra, Digital Signal Processing, A Computer</a></li>
<li class="member"><a href="scilab://Based" class="link">Approach, McGraw-Hill, N.Y., 1998, Chapter 6.</a></li></ul></div>
<div class="refsection"><h3 class="title">Authors</h3>
<ul class="itemizedlist"><li class="member">Ayush Baid</li></ul></div>
<br />
<div class="manualnavbar">
<table width="100%">
<tr><td colspan="3" class="next"><a href="http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software&component=Documentation%20pages" class="ulink">Report an issue</a></td></tr>
<tr>
<td width="30%">
<span class="previous"><a href="lar2rc.html"><< lar2rc</a></span>
</td>
<td width="40%" class="center">
<span class="top"><a href="section_cc2bc01c47967d47fcf3507a91d572ba.html">FOSSEE Signal Processing Toolbox</a></span>
</td>
<td width="30%" class="next">
<span class="next"><a href="latcfilt.html">latcfilt >></a></span>
</td>
</tr></table>
<hr />
</div>
</body>
</html>
|