How to find Hamming Distance ?
Show older comments
I have a set of different codewords , how I separate those code words having the same hamming distance? Also D=pdist(A,'hamming') does not work in my case , If A is 1 1 1 2; 1 2 1 2 I want to calculate no. of position where they differ.
1 Comment
Walter Roberson
on 25 Jan 2018
Does it happen to be the case that all of your values are either 1 or 2 ? (Or, more generally, that you have exactly two different values and the two values are numerically 1 apart ?)
Accepted Answer
More Answers (0)
Categories
Find more on Hamming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!