<html>
<head>
<title>
Netlab Reference Manual dist2
</title>
</head>
<body>
<H1> dist2
</H1>
<h2>
Purpose
</h2>
Calculates squared distance between two sets of points.

<p><h2>
Synopsis
</h2>
<PRE>
d = dist2(x, c)
</PRE>


<p><h2>
Description
</h2>
<CODE>d = dist2(x, c)</CODE> takes two matrices of vectors and calculates the
squared Euclidean distance between them.  Both matrices must be of the
same column dimension.  If <CODE>x</CODE> has <CODE>m</CODE> rows and <CODE>n</CODE> columns, and
<CODE>c</CODE> h