Home > FR3DSource > zMutualDistance.m

zMutualDistance

PURPOSE ^

zMutalDistance(A,L) finds the mutual distances between the rows of A and

SYNOPSIS ^

function [D] = zMutualDistance(A,L)

DESCRIPTION ^

 zMutalDistance(A,L) finds the mutual distances between the rows of A and
 returns a sparse matrix D in which all entries are less than L

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % zMutalDistance(A,L) finds the mutual distances between the rows of A and
0002 % returns a sparse matrix D in which all entries are less than L
0003 
0004 function [D] = zMutualDistance(A,L)
0005 
0006 % D = squareform(pdist(A));                  % pdist is in stats toolbox
0007 
0008 D = zDistance(A);
0009 
0010 D = sparse(D .* (D < L));

Generated on Fri 03-Apr-2009 09:52:35 by m2html © 2003