<?xml version="1.0" encoding="UTF-8"?>

<!--
 *
 * This help file was generated from synthesis.sci using help_from_sci().
 *
 -->

<refentry version="5.0-subset Scilab" xml:id="synthesis" xml:lang="en"
          xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:ns3="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:scilab="http://www.scilab.org"
          xmlns:db="http://docbook.org/ns/docbook">

  <refnamediv>
    <refname>synthesis</refname>
    <refpurpose>Compute a signal from its short-time Fourier transform.</refpurpose>
  </refnamediv>


<refsynopsisdiv>
   <title>Syntax</title>
   <synopsis>
   synthesis(y, c)
   
   </synopsis>
</refsynopsisdiv>

<refsection>
   <title>Parameters</title>
   <variablelist>
        <varlistentry>
            <term>y:</term>
            <listitem><para> Real or complex matrix representing a signal's short-time fourier transform.</para></listitem>
        </varlistentry>
        <varlistentry>
            <term>c:</term>
            <listitem><para> 3-element vector C specifying window size, increment and window type.</para></listitem>
        </varlistentry>
   </variablelist>
</refsection>

<refsection>
   <title>Description</title>
   <para>
Compute a signal from its short-time Fourier transform 'y' and a 3-element vector 'c' specifying window size, increment, and window type.
A window type of 1 represents a hanning window, 2 represents a hamming window and 3 represents a rectangular window.
The values 'y' and 'c' can be derived by [y, c] = stft (x, ...)
   </para>
   <para>
</para>
</refsection>

<refsection>
   <title>Examples</title>
   <programlisting role="example"><![CDATA[
// Reconstruct a signal from its short-time Fourier transform
// Define a short-time Fourier transform (STFT) matrix
y = [1+2*%i, 2+3*%i; 3+4*%i, 4+5*%i]
// Define the window parameters: [window size, increment, window type]
c = [4, 1, 1] // Hanning window with size 4 and increment 1
// Reconstruct the signal
x = synthesis(y, c)

   ]]></programlisting>
</refsection>
</refentry>
