Improve the lindquist example 42/11042/2
Sylvestre Ledru [Wed, 27 Mar 2013 10:11:54 +0000 (11:11 +0100)]
Change-Id: Id78d15927819b1856dfd3ecc412d35d3fa30c56c

scilab/modules/signal_processing/help/en_US/filters/lindquist.xml

index ab1cfcc..980a3ae 100644 (file)
         <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");
+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=[];
+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