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