<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 29/09/2015 15:58, Peter Q. a écrit :<br>
</div>
<blockquote
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
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 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>