Hamming distance between two binary matrices

1 次查看(过去 30 天)
How can I calculate the hamming distance between 2 20x20 binary matrices?
Thank you in advance.

采纳的回答

vaishali
vaishali 2013-10-11
D = pdist2(X,Y,'hamming')

更多回答(1 个)

Laura Wright
Laura Wright 2019-10-31
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