Hamming distance between two binary matrices

4 vues (au cours des 30 derniers jours)
Andrei
Andrei le 11 Oct 2013
How can I calculate the hamming distance between 2 20x20 binary matrices?
Thank you in advance.

Réponse acceptée

vaishali
vaishali le 11 Oct 2013
D = pdist2(X,Y,'hamming')

Plus de réponses (1)

Laura Wright
Laura Wright le 31 Oct 2019
Does X~=Y also give the same answer?

Community Treasure Hunt

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

Start Hunting!

Translated by