Clear Filters
Clear Filters

Hamming distance between two binary matrices

5 views (last 30 days)
How can I calculate the hamming distance between 2 20x20 binary matrices?
Thank you in advance.

Accepted Answer

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

More Answers (1)

Laura Wright
Laura Wright on 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!