


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


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));