<?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) 1995 Rice University.
-->


<refentry xml:id="integ2d" 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>integ2d</refname><refpurpose>Approximate 2-D integral.</refpurpose>
  </refnamediv>



  <refsynopsisdiv>
    <title>Calling Sequence</title>
    <synopsis>
      SOM=integ2d(MAT)
      SOM=integ2d(MAT,X)
      SOM=integ2d(MAT,X,Y)
    </synopsis>
  </refsynopsisdiv>

  <refsection>
    <title>Parameters</title>
    <variablelist>
      <varlistentry>
        <term>	MAT :</term>
        <listitem>
          <para> MxN matrix to be integrated</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>	X   :</term>
        <listitem>
          <para> N-vector indicating the abscissa integration path (default : 1:N)</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>	Y   :</term>
        <listitem>
          <para> M-vector indicating the ordinate integration path (default : 1:M)	</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>	SOM :</term>
        <listitem>
          <para> result of integration</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsection>

  <refsection>
    <title>Description</title>
    <para>
      integ2d approximates the 2-D integral of  matrix MAT according to abscissa X and ordinate Y.
    </para>
    <caution>Initial version assumes X sampled with a constant step</caution>
  </refsection>

  <refsection>
    <title>Examples</title>
    <programlisting role="example"><![CDATA[
    S = altes(256,0.1,0.45,10000) ;
    [TFR,T,F] = tfrscalo(S,21:190,8,0.1,0.35,256) ;
    E = integ2d(TFR,T,F)
    ]]></programlisting>
  </refsection>

  <refsection>
    <title>See also</title>
    <simplelist type="inline">
      <member><link linkend="integ">integ</link></member>
    </simplelist>
  </refsection>

  <refsection>
    <title>Authors</title>
    <simplelist type="vert">
      <member>H. Nahrstaedt - Aug 2010</member>
      <member>	P. Goncalves, October 95</member>
    </simplelist>
  </refsection>
</refentry>
