<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 24/03/2017 à 18:40,
      <a class="moz-txt-link-abbreviated" href="mailto:paul.carrico@free.fr">paul.carrico@free.fr</a> a écrit :<br>
    </div>
    <blockquote cite="mid:ebb20b8fb8708c83d3f0e747da9df250@free.fr"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div class="pre" style="margin: 0; padding: 0; font-family:
        monospace">Hi all,<br>
        <br>
        I don't know if my question is relavante (or not), but I'm
        wondering what is the best way to perform a 3D interpolation,
        from for the matrix definition to the interpolation procedure.<br>
        <br>
        Let me using a basic example: I've some curves y = f(x,T)
        defining a material behaviour at different temperatures i.e. 1
        curve (x,y) per temperature:<br>
        - y = f(x,20)<br>
        - y = f(x,100)<br>
        - y = f(x,200)<br>
        <br>
        etc.<br>
        <br>
        What is the best way to define a single matrix? [x y T] ?<br>
      </div>
    </blockquote>
    <br>
    It depends on whether f() is vectorized or not. It could be
    something like<br>
    t = [20 100 200];<br>
    [X, T] = ndgrid(x, t);<br>
    Y = f(X,T);<br>
    // or<br>
    Y = feval(x, t);<br>
    <br>
    Then:<br>
    M = [X(:) Y(:) T(:)];<br>
    <br>
    <br>
  </body>
</html>