<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
    <style type="text/css">
        /* Quote Levels Colors */
        blockquote.cite {    color: navy !important; background-color: RGB(245,245,245) !important;
        }
        blockquote.cite blockquote.cite {    color: maroon !important; background-color: RGB(235,235,235) !important;
        }
        blockquote.cite blockquote.cite blockquote.cite {    color: green !important; background-color: RGB(225,225,225) !important;
        }
        blockquote.cite blockquote.cite blockquote.cite blockquote.cite {    color: purple !important; background-color: RGB(215,215,215) !important;
        }
        blockquote.cite blockquote.cite blockquote.cite blockquote.cite blockquote.cite {    color: teal !important; background-color: RGB(205,205,205) !important;
        } 
</style>
  </head>
  <body>
    I think you are missing brackets there, presuming .^ now operates on
    the sum?<br>
    <br>
    Best wishes,<br>
    <br>
    Jasper.<br>
    <br>
    <div class="moz-cite-prefix">On 9/29/2015 16:20, Serge Steer wrote:<br>
    </div>
    <blockquote class=" cite" id="mid_560A9E30_4060503_inria_fr"
      cite="mid:560A9E30.4060503@inria.fr" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Le 29/09/2015 15:58, Peter Q. a
        écrit :<br>
      </div>
      <blockquote class=" cite"
id="mid_CAGCN6HADiAbgk7nJJOL2fN1j1bUbFt5znVy0oX05dz5__huNpA_mail_gmail_com"
cite="mid:CAGCN6HADiAbgk7nJJOL2fN1j1bUbFt5znVy0oX05dz5-+huNpA@mail.gmail.com"
        type="cite">
        <p>Hi.<br>
          I need your help.<br>
          Is there a function for distance between two points?<br>
        </p>
      </blockquote>
      If your points are given by cartesian coordinates stored in 2
      arrays  p1 and p2<br>
      you can compute the distance between these 2 points with<br>
      norm(p2-p1) <br>
      or equivalently by<br>
      sqrt(sum(p2-p1).^2)<br>
      Serge Steer<br>
      <blockquote class=" cite"
id="mid_CAGCN6HADiAbgk7nJJOL2fN1j1bUbFt5znVy0oX05dz5__huNpA_mail_gmail_com"
cite="mid:CAGCN6HADiAbgk7nJJOL2fN1j1bUbFt5znVy0oX05dz5-+huNpA@mail.gmail.com"
        type="cite">
        <p> Thanks in advance.</p>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>
    </blockquote>
    <br>
  </body>
</html>