* Bug #11665 fixed - Help page of lindquist had no example. 09/10909/2
Charlotte HECQUET [Wed, 20 Mar 2013 14:24:06 +0000 (15:24 +0100)]
Change-Id: Ifd8ce53ed44f8fec755e2d9960d85f8dcbffc456

scilab/CHANGES_5.4.X
scilab/modules/signal_processing/help/en_US/filters/lindquist.xml

index 56bbcdb..742aeb3 100644 (file)
@@ -330,6 +330,8 @@ Bug fixes
 
 * Bug #11639 fixed - Uninstall removed all scilab registry information.
 
+* Bug #11665 fixed - Help page of lindquist had no example.
+
 * Bug #11669 fixed - Help page of kalm and srkf functions had no example.
 
 * Bug #11682 fixed - "resizefcn" and "closerequestfcn" properties description
index f09ce16..ab1cfcc 100644 (file)
             filter model, by the Lindquist's algorithm.
         </para>
     </refsection>
+    <refsection>
+        <title>Example</title>
+        <programlisting role="example"><![CDATA[
+//Generate signal
+x=%pi/10:%pi/10:102.4*%pi;
+y=[1;1]*sin(x)+[sin(2*x);sin(1.9*x)]+rand(2,1024,"normal");
+
+//Compute correlations
+c=[];for j=1:2,for k=1:2,c=[c;corr(y(k,:),y(j,:),64)];end;end
+c=matrix(c,2,128);
+
+//Find H,F,G with 6 states
+hk=hank(20,20,c);
+[H,F,G]=phc(hk,2,6);
+
+//Solve Riccati equation
+R0=c(1:2,1:2);
+[P,R,T]=lindquist(100,H,F,G,R0);
+]]></programlisting>
+    </refsection>
     <refsection role="see also">
         <title>See Also</title>
         <simplelist type="inline">