<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Scilab time frequency toolbox.
This file must be used under the terms of the  terms of the GNU General Public License 
as published by the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

Copyright (c) 1996 by CNRS (France).
-->

<refentry xml:id="plotifl" 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:scilab="http://www.scilab.org"
          xmlns:ns3="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:db="http://docbook.org/ns/docbook">

  <refnamediv>
    <refname>plotifl</refname>
	<refpurpose>Plot normalized instantaneous frequency laws</refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <title>Calling Sequence</title>
    <synopsis>
      plotifl(T, IFLAWS)
      plotifl(T, IFLAWS, SIGNAL)
    </synopsis>
  </refsynopsisdiv>

  <refsection>
    <title>Parameters</title>
    <variablelist>
      <varlistentry>
        <term>	T      :</term>
        <listitem>
          <para>a real vector of size M: the time instants,</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>	IFLAWS :</term>
        <listitem>
          <para> an M by P real matrix with values in [-0.5 0.5]: each
          column corresponds to the instantaneous frequency law of a
          signal.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>SIGNAL :</term>
        <listitem>
          <para>a real or complex vector of size M: if given a subwindow is drawn with plot(T,real(SIGNAL))</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsection>

  <refsection>
    <title>Description</title>
    <para>
      plotifl plot the normalized instantaneous frequency laws of each signal component.
    </para>
  </refsection>

  <refsection>
    <title>Examples</title>
    <programlisting role="example"><![CDATA[
    N = 140; t = (0:N-1)'; 
    [x1,if1] = fmlin(N,0.05,0.3);
    [x2,if2] = fmsin(70,0.35,0.45,60);
    x1(35+(1:70)) = x1(35+(1:70))+2*x2;
    if2 = [zeros(35,1)*%nan ; if2 ; zeros(N-70-35,1)*%nan];
    plotifl(t,[if1 if2],x1);
    ]]></programlisting>
    <scilab:image><![CDATA[
    N=140; t=(0:N-1)'; 
    [x1,if1]=fmlin(N,0.05,0.3);
    [x2,if2]=fmsin(70,0.35,0.45,60);
    x1(35+(1:70))=x1(35+(1:70))+2*x2;
    if2=[zeros(35,1)*%nan;if2;zeros(N-70-35,1)*%nan];
    plotifl(t,[if1 if2],x1);
    ]]></scilab:image>
  </refsection>

  <refsection role="see also">
    <title>See also</title>
    <simplelist type="inline">
      <member><link linkend="tfrideal">tfrideal</link></member>
      <member><link linkend="plotsid">plotsid</link></member>
    </simplelist>
  </refsection>

  <refsection>
    <title>Authors</title>
    <simplelist type="vert">
      <member>H. Nahrstaedt - Aug 2010</member>
      <member>F. Auger, August 94, August 95, May 1998.</member>
    </simplelist>
  </refsection>
</refentry>
