Hamming distance between two binary matrices

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

 Akzeptierte Antwort

vaishali
vaishali am 11 Okt. 2013

0 Stimmen

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

Weitere Antworten (1)

Laura Wright
Laura Wright am 31 Okt. 2019

2 Stimmen

Does X~=Y also give the same answer?

Gefragt:

am 11 Okt. 2013

Beantwortet:

am 31 Okt. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by