Filter löschen
Filter löschen

Hamming distance between two binary matrices

5 Ansichten (letzte 30 Tage)
Andrei
Andrei am 11 Okt. 2013
Beantwortet: Laura Wright am 31 Okt. 2019
How can I calculate the hamming distance between 2 20x20 binary matrices?
Thank you in advance.

Akzeptierte Antwort

vaishali
vaishali am 11 Okt. 2013
D = pdist2(X,Y,'hamming')

Weitere Antworten (1)

Laura Wright
Laura Wright am 31 Okt. 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