<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 17/09/2012 09:53, Carrico, Paul
      wrote:<br>
    </div>
    <blockquote
      cite="mid:55A12CBC06A8C9459DCE0BBEF8122FDC08B77487@exchsrv.AUXITROL1"
      type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <meta name="GENERATOR" content="MSHTML 8.00.6001.19298">
      <div><span style="FONT-FAMILY: 'Comic Sans MS'; COLOR: green;
          FONT-SIZE: 10pt"><span class="711212207-17092012"><font
              color="#000000" face="Arial">Dear all,</font></span></span></div>
      <div><span style="FONT-FAMILY: 'Comic Sans MS'; COLOR: green;
          FONT-SIZE: 10pt"><span class="711212207-17092012"></span></span> </div>
      <div><span style="FONT-FAMILY: 'Comic Sans MS'; COLOR: green;
          FONT-SIZE: 10pt"><span class="711212207-17092012"><font
              color="#000000" face="Arial">Is it possible to make a
              linear interpolation between 2 curves ? note the abscissa
              are not necessary exactly the same  ...</font></span></span></div>
      <div><span style="FONT-FAMILY: 'Comic Sans MS'; COLOR: green;
          FONT-SIZE: 10pt"><span class="711212207-17092012"></span></span> </div>
      <div><span style="FONT-FAMILY: 'Comic Sans MS'; COLOR: green;
          FONT-SIZE: 10pt"><span class="711212207-17092012"><font
              color="#000000" face="Arial">In particular terms, I've a
              curve one at temperature X and another one at température
              Y and I would like to have (and to plot) temperature at
              temperature Z in-between X-Y ... (see attachment)</font></span></span></div>
      <div><span style="FONT-FAMILY: 'Comic Sans MS'; COLOR: green;
          FONT-SIZE: 10pt"><span class="711212207-17092012"></span></span> </div>
      <div><span style="FONT-FAMILY: 'Comic Sans MS'; COLOR: green;
          FONT-SIZE: 10pt"><span class="711212207-17092012"><font
              color="#000000" face="Arial">I had a look in interp,
              interp1 and interpln but nothing sound useful for me ...
              Am I wrong ?</font></span></span></div>
      <div><span style="FONT-FAMILY: 'Comic Sans MS'; COLOR: green;
          FONT-SIZE: 10pt"><span class="711212207-17092012"></span></span> </div>
      <div><span style="FONT-FAMILY: 'Comic Sans MS'; COLOR: green;
          FONT-SIZE: 10pt"><span class="711212207-17092012"><font
              color="#000000" face="Arial">Thanks for any advice</font></span></span></div>
      <div><span style="FONT-FAMILY: 'Comic Sans MS'; COLOR: green;
          FONT-SIZE: 10pt"><span class="711212207-17092012"></span></span> </div>
      <div><span style="FONT-FAMILY: 'Comic Sans MS'; COLOR: green;
          FONT-SIZE: 10pt"><span class="711212207-17092012"><font
              color="#000000" face="Arial">Paul</font></span></span></div>
      <pre>--------------------------------------------------------------------------------


Le présent mail et ses pièces jointes sont confidentiels et destinés à la personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu cet e-mail par erreur, veuillez contacter immédiatement l'expéditeur et effacer le message de votre système. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email.


<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>

</pre>
    </blockquote>
    You should have a look at ndgrid and cshep2d.<br>
    Here is a bit a script we use to interpolate scattered data on a
    grid:<br>
    <br>
    [xy,k]=unique([x,y],1);<br>
    x=x(k);<br>
    y=y(k);<br>
    z=z(k);<br>
    <br>
    //Interpolation bicubique<br>
    tl_coef = cshep2d([x y z]);<br>
    // evaluation on a grid<br>
    m = 50;<br>
    X = linspace(min(x),max(x),m);<br>
    Y = linspace(min(y),max(y),m);<br>
    [xx,yy] = ndgrid(X,Y);<br>
    // interpolation bicubique pour intuiter les valeurs<br>
    Z = eval_cshep2d(xx,yy, tl_coef);<br>
    <br>
    <br>
    Cheers,<br>
    <br>
    Antoine<br>
    <pre class="moz-signature" cols="72">-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 Antoine Monmayrant LAAS - CNRS
 7 avenue du Colonel Roche
 31077 TOULOUSE
 Cedex 4 FRANCE

 Tel:+33 5 61 33 64 59
 
 email : <a class="moz-txt-link-abbreviated" href="mailto:antoine.monmayrant@laas.fr">antoine.monmayrant@laas.fr</a>
 permanent email : <a class="moz-txt-link-abbreviated" href="mailto:antoine.monmayrant@polytechnique.org">antoine.monmayrant@polytechnique.org</a>

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

</pre>
  </body>
</html>