summaryrefslogtreecommitdiff
path: root/help/en_US/stmcb.xml
diff options
context:
space:
mode:
authorSunil Shetye2018-07-25 16:27:51 +0530
committerSunil Shetye2018-07-26 23:50:17 +0530
commit9ca7882cee16ad48b18df989e8300c697010e55a (patch)
tree59e0c6116b835ae3e5e3208bc9609ed2828069ed /help/en_US/stmcb.xml
parent6bbb00d0f0128381ee95194cf7d008fb6504de7d (diff)
downloadFOSSEE-Signal-Processing-Toolbox-9ca7882cee16ad48b18df989e8300c697010e55a.tar.gz
FOSSEE-Signal-Processing-Toolbox-9ca7882cee16ad48b18df989e8300c697010e55a.tar.bz2
FOSSEE-Signal-Processing-Toolbox-9ca7882cee16ad48b18df989e8300c697010e55a.zip
code changes by Sonu Sharma during FOSSEE Fellowship 2018
Diffstat (limited to 'help/en_US/stmcb.xml')
-rw-r--r--help/en_US/stmcb.xml123
1 files changed, 122 insertions, 1 deletions
diff --git a/help/en_US/stmcb.xml b/help/en_US/stmcb.xml
index 2490a4b..7972926 100644
--- a/help/en_US/stmcb.xml
+++ b/help/en_US/stmcb.xml
@@ -17,7 +17,128 @@
<refnamediv>
<refname>stmcb</refname>
- <refpurpose>function [b,a] = stmcb( x, u_in, q, p, niter, a_in )</refpurpose>
+ <refpurpose>Compute linear model using Steiglitz-McBride iteration</refpurpose>
+ <para> </para>
</refnamediv>
+
+<refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>
+[b,a] = stmcb(h,nb,na)
+[b,a] = stmcb(y,x,nb,na)
+[b,a] = stmcb(h,nb,na,niter)
+[b,a] = stmcb(y,x,nb,na,niter)
+[b,a] = stmcb(h,nb,na,niter,ai)
+[b,a] = stmcb(y,x,nb,na,niter,ai)
+ </synopsis>
+ <para> </para>
+</refsynopsisdiv>
+
+<refsection>
+ <title>Parameters</title>
+ <variablelist>
+ <varlistentry><term>b,a </term>
+ <listitem><para> : coefficients of the system function,nb is number of zeros and na is number of poles</para></listitem></varlistentry>
+ <varlistentry><term>h</term>
+ <listitem><para> : impulse response of the system</para></listitem></varlistentry>
+ <varlistentry><term>x, y</term>
+ <listitem><para> : input and output of same length given to the system</para></listitem></varlistentry>
+ <varlistentry><term>nitren</term>
+ <listitem><para> : number of iterations</para></listitem></varlistentry>
+ <varlistentry><term>ai</term>
+ <listitem><para> : initial estimate of the denominator coefficients</para></listitem></varlistentry>
+ <para> </para>
+ <para>Accepts only real i/ps, complex i/ps are not accepted due to limitations of the 'filter' function in Scilab</para>
+</variablelist>
+ <para> </para>
+</refsection>
+
+<refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+h = fscanfMat("macros/stmcb_h_data.txt"); //required impulse response samples
+plot(h); //plotting required impulse response
+title "Required impulse respose (h) plot "
+xlabel "samples (n)"
+ylabel "magnitude {h(n)} "
+nb = 4 ; // four zeros
+na = 4 ; //four poles
+stmcb(h,nb,na)
+ ]]></programlisting>
+
+<scilab:image>
+h = [0.0003
+0.0033
+0.0149
+0.0432
+0.0911
+0.1493
+0.1985
+0.2190
+0.2007
+0.1479
+0.0764
+0.0070
+-0.0429
+-0.0649
+-0.0601
+-0.0375
+-0.0092
+0.0142
+0.0265
+0.0267
+0.0180
+0.0057
+-0.0052
+-0.0115
+-0.0123
+-0.0088
+-0.0033
+0.0018
+0.0050
+0.0057
+0.0043
+0.0018
+-0.0006
+-0.0021
+-0.0026
+-0.0021
+-0.0010
+0.0001
+0.0009
+0.0012
+0.0010
+0.0005
+0.0000
+-0.0004
+-0.0005
+-0.0005
+-0.0003
+-0.0000
+0.0002
+0.0002
+0.0002
+0.0001
+0.0000
+-0.0001
+-0.0001
+-0.0001
+-0.0001
+-0.0000
+0.0000
+0.0000
+0.0000
+0.0000
+0.0000
+-0.0000 ]
+
+plot(h); //plotting required impulse response
+title "Required impulse respose (h) plot "
+xlabel "samples (n)"
+ylabel "magnitude {h(n)} "
+
+</scilab:image>
+</refsection>
+
</refentry>