as <CODE>l</CODE> rows and <CODE>n</CODE> columns, then the result has
<CODE>m</CODE> rows and <CODE>l</CODE> columns.  The <CODE>i, j</CODE>th entry is the 
squared distance from the <CODE>i</CODE>th row of <CODE>x</CODE> to the <CODE>j</CODE>th
row of <CODE>c</CODE>.

<p><h2>
Example
</h2>
The following code is used in <CODE>rbffwd</CODE> to calculate the activation of
a thin plate spline function.
<PRE>

n2 = dist2(x, c);
z = log(n2.^(n2.^2));
</PRE>


<p><h2>
See Also
</h2>
<CODE><a href="gmmactiv.htm">