<?xml version="1.0" encoding="UTF-8"?>
<!--
    * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
    * Copyright (C) 2002-2006 - INRIA - Serge STEER
    *
 * Copyright (C) 2012 - 2016 - Scilab Enterprises
 *
 * This file is hereby licensed under the terms of the GNU GPL v2.0,
 * pursuant to article 5.3.4 of the CeCILL v.2.1.
 * This file was originally licensed under the terms of the CeCILL v2.1,
 * and continues to be available under such terms.
 * For more information, see the COPYING file which you should have received
 * along with this program.
    *
    -->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="interpln">
    <refnamediv>
        <refname>interpln</refname>
        <refpurpose>interpolation linéaire  </refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Séquence d'appel</title>
        <synopsis>[y]=interpln(xyd,x)</synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Paramètres</title>
        <variablelist>
            <varlistentry>
                <term>xyd  </term>
                <listitem>
                    <para>matrice à deux lignes (coordonnées x et y des points)
                    </para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>x  </term>
                <listitem>
                    <para>vecteur des abscisses
                    </para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>y  </term>
                <listitem>
                    <para>vecteur des ordonnées
                    </para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Description</title>
        <para>
            étant donné <literal>xyd</literal> un ensemble de points dans le plan avec des abscisses croissantes et <literal>x</literal> un ensemble d'abscisses, cette fonction renvoie dans <literal>y</literal> les ordonnées correspondantes, calculées par interpolation linéaire.
        </para>
    </refsection>
    <refsection>
        <title>Exemples</title>
        <programlisting role="example"><![CDATA[
x=[1 10 20 30 40];
y=[1 30 -10 20 40];
plot2d(x',y',[-3],"011"," ",[-10,-40,50,50]);
yi=interpln([x;y],-4:45);
plot2d((-4:45)',yi',[3],"000");
 ]]></programlisting>
    </refsection>
    <refsection role="see also">
        <title>Voir aussi</title>
        <simplelist type="inline">
            <member>
                <link linkend="splin">splin</link>
            </member>
            <member>
                <link linkend="interp">interp</link>
            </member>
            <member>
                <link linkend="smooth">smooth</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
