Hamming distance between two binary matrices

How can I calculate the hamming distance between 2 20x20 binary matrices?
Thank you in advance.

 採用された回答

vaishali
vaishali 2013 年 10 月 11 日

0 投票

D = pdist2(X,Y,'hamming')

その他の回答 (1 件)

Laura Wright
Laura Wright 2019 年 10 月 31 日

2 投票

Does X~=Y also give the same answer?

質問済み:

2013 年 10 月 11 日

回答済み:

2019 年 10 月 31 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by