From: Satish on
Hi all,

I have my matrix of 100*60. Among 6000 units , i just have '1'(one's) in 95-100 cell.
Each matrix have different position of one's like :

A=[ 0 0 1 0 .......1
1 0 0 1 .......0
0 1 0 0 .......1
0 0 0 0 .......0]

B=[ 0 1 0 0 .......1
0 0 1 1 .......1
0 0 0 0 .......0
1 0 0 0 .......0]

I tried to calculate distance using D = pdist(X,distance) where in distance i check with 'euclidean','seuclidean','mahalanobis','hamming'...etc.

But the resulting distance from is zero.

How can i calculate the distance in this matrix ?

Thanks in Advance