* Bug #7877 fixed - Signal_processing: due to a typo, iirgroup() used an undefined... 13/12513/4
Paul BIGNIER [Thu, 12 Sep 2013 10:28:02 +0000 (12:28 +0200)]
iirgroup() crashed at every call because it used an undefined variable,
which was a typo.

Fixed doc.

Change-Id: I79788bb6cdae5144afd9afc6c2acdfe4623f6e46

scilab/CHANGES_5.5.X
scilab/modules/signal_processing/help/en_US/filters/iirgroup.xml
scilab/modules/signal_processing/help/en_US/filters/iirlp.xml
scilab/modules/signal_processing/macros/iirgroup.sci

index 3750162..688637d 100644 (file)
@@ -291,6 +291,8 @@ Bug fixes
 
 * Bug #7848 fixed - The third argument of correl function is now optional.
 
+* Bug #7877 fixed - iirgroup fixed.
+
 * Bug #7927 fixed - Output "flag" in qmr function was not well documented.
 
 * Bug #7960 fixed - plzr() could not produce pole zero plot for a simple transfer function.
@@ -664,4 +666,3 @@ Bug fixes
 * Bug #12909 fixed - Completion on (mt)list led to a crash.
 
 * Bug #12911 fixed - eig Matlab-equivalent help page updated.
-
index d757e35..a97ad30 100644 (file)
@@ -7,13 +7,18 @@
     <refsynopsisdiv>
         <title>Calling Sequence</title>
         <synopsis>[lt,grad]=iirgroup(p,r,theta,omega,wt,td)
-            [cout,grad,ind]=iirlp(x,ind,p,[flag],lambda,omega,ad,wa,td,wt)
         </synopsis>
     </refsynopsisdiv>
     <refsection>
         <title>Arguments</title>
         <variablelist>
             <varlistentry>
+                <term>p</term>
+                <listitem>
+                    <para>Lp criterion</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
                 <term>r</term>
                 <listitem>
                     <para>vector of the module of the poles and the zeros of the filters</para>
index 7944eb4..90df182 100644 (file)
         <title>Arguments</title>
         <variablelist>
             <varlistentry>
+                <term>p</term>
+                <listitem>
+                    <para>Lp criterion</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
                 <term>x</term>
                 <listitem>
                     <para>1X2 vector of the module and argument of the poles and the zeros of the filters</para>
@@ -21,7 +27,7 @@
                 <term>flag</term>
                 <listitem>
                     <para>
-                        string : <literal>'a'</literal>  for amplitude, 'gd' for group delay; default case for amplitude and group delay.
+                        string : <literal>'a'</literal> for amplitude, 'gd' for group delay; default case for amplitude and group delay.
                     </para>
                 </listitem>
             </varlistentry>
index da3834c..dfe64a7 100644 (file)
@@ -47,6 +47,6 @@ function [lt,grad]=iirgroup(p,r,theta,omega,wt,td)
     //
     //CRITERE D'ERREUR EN LE RETARD DE GROUPE ET SON GRADIENT
     t=grp-td;t1=t^(2*p);t1=t1.*wt;lt=sum(t1);
-    t1=(t1./a)*2*p;
+    t1=(t1./t)*2*p;
     grad=[grrgrp*t1' grtgrp*t1'];
 endfunction