Hamming distance between columns of two matrices
7 次查看(过去 30 天)
显示 更早的评论
Hii
%Just an example
HamDist = pdist2(B,C,'hamming');
[~,ind] = min(HamDist,[],2);
Is there any trick to perform hamming distance between columns of two different binary matrices: A(64 by100) and B(64 by 80), and report the minimum distances?
To understand more : the "A" is a data matrix with 100 sample, and the B has 80 cluster centroids and in terms of clustering i would like to create the indicator matrix based on the minimum distance between A and B.
2 个评论
Awais Saeed
2021-11-10
How aboout padd some zeros in B to make size(A)=size(B) and then find the hamming distance
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hamming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!