Add examples to intdec, mfft & wfir_gui 57/9857/2
Sylvestre Ledru [Thu, 29 Nov 2012 11:21:28 +0000 (12:21 +0100)]
Change-Id: Idbf6c4749eab5e07b200bdb837f2b90b89a0fb65

scilab/modules/signal_processing/help/en_US/spectral_estimation/intdec.xml
scilab/modules/signal_processing/help/en_US/transforms/mfft.xml
scilab/modules/signal_processing/help/en_US/wfir_gui.xml

index b830d5a..8a5912c 100644 (file)
             Changes the sampling rate of a 1D or 2D signal by the rates in lom
         </para>
     </refsection>
-</refentry>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+Fs1 = 10000;
+Fs2 = 14000;
+t1 = 0:1/Fs1:10;
+t2 = 0:1/Fs2:10;
+F0 = 500;
+u1 = sin(2*%pi*F0*t1);
+u2 = sin(2*%pi*F0*t2);
+u2b = intdec(u1, Fs2/Fs1)
+plot(u2b, u2);
+ ]]></programlisting>
+        <scilab:image>
+            
+            Fs1 = 10000; Fs2 = 14000;
+            t1 = 0:1/Fs1:10; t2 = 0:1/Fs2:10;
+            F0 = 500;
+            u1 = sin(2*%pi*F0*t1); u2 = sin(2*%pi*F0*t2);
+            u2b = intdec(u1, Fs2/Fs1);
+            plot(u2b, u2);
+        </scilab:image>
+        
+    </refentry>
index 12245c9..9beabbc 100644 (file)
@@ -55,7 +55,7 @@
             dimension and three points along its third dimension the row
             vector is arranged as follows
         </para>
-        <programlisting role=""><![CDATA[ 
+        <programlisting role="no-scilab-exec"><![CDATA[ 
 x=[x(1,1,1),x(2,1,1),x(3,1,1),...
    x(1,2,1),x(2,2,1),x(3,2,1),...
    x(1,1,2),x(2,1,2),x(3,1,2),...
index 698fc97..ddbabc4 100644 (file)
         </para>
     </refsection>
     <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+wfir_gui()
+ ]]></programlisting>
+    </refsection>
+    
+    <refsection>
         <title>History</title>
         <revhistory>
             <revision>