<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <font face="Courier New">Dear All,<br>
      <br>
      I find that the extrapolation option for interp1 is not thoroughly
      documented. In the Arguments section it states, for extrapolation,</font><br>
    <br>
    <blockquote>(optional) string, or real value defining the yp(j)
      components for xp(j) values outside [x1,xn] interval.<br>
    </blockquote>
    <br>
    In the Description section the only string listed is "extrap" which
    says:<br>
    <br>
    <div class="refsection">
      <dl>
        <dd>
          <p class="para"> the extrapolation is performed by the defined
            method </p>
        </dd>
      </dl>
    </div>
      <font face="Courier New"><br>
      But which is the defined method? If one selects the method
      "spline" it is suggested to refer to interp(), which has a
      specific argument (called out_mode) with several possibilities for
      extrapolation. These possibilities aren't accessible from the
      interp1() function, so it should be completely clear in its
      documantation which one is used.<br>
      <br>
      Besides, the argument extrapolation is optional but it is not
      clear what happens if it is not used. I suppose it is what appears
      under "by default", but again it says<br>
      <br>
    </font><font face="Courier New"> </font>
    <div class="refsection">
      <dl>
        <dd>
          <p class="para"> the extrapolation is performed by the defined
            method (for spline method) </p>
        </dd>
      </dl>
    </div>
    <br>
    But, as already mentioned, tha spline method has <font
      face="Courier New">more than one extrapolation strategy, which can
      be selected from interp but not from interp1.<br>
      <br>
      Finally, at least for spline it seems to be no difference between
      setting the extrapolation argument to "extrap" or not using it.<br>
      <br>
      Regards,<br>
      <br>
      Federico Miyara<br>
        </font>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
        <tr>
      <td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Libre de virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>           </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>