diff options
Diffstat (limited to 'help/en_US/stmcb.xml')
-rw-r--r-- | help/en_US/stmcb.xml | 123 |
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> |