Azzera filtri
Azzera filtri

Hamming distance between two binary matrices

5 visualizzazioni (ultimi 30 giorni)
How can I calculate the hamming distance between 2 20x20 binary matrices?
Thank you in advance.

Risposta accettata

vaishali
vaishali il 11 Ott 2013
D = pdist2(X,Y,'hamming')

Più risposte (1)

Laura Wright
Laura Wright il 31 Ott 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