Problem 2303. Compute Hamming distances between each pair of rows from two input matrices
For two input matrices u ( n x uCols ) and v ( n x vCols ) of numbers in range [0..255] (8-bit), such that each column represents an (8 x n)-dimensional binary vector, calculate uCols x vCols matrix with each entry (i,j) being a Hamming distance between i -th and j -th column from inputs u and v respectively.
Solution Stats
Problem Comments
-
2 Comments
I found the problem description a little confusing, but It's just a matrix multiplication. However, instead of doing the dot product, we must calculate the hamming distance between row and column.
+1, The problem statement is confusing.
Solution Comments
Show commentsProblem Recent Solvers15
Suggested Problems
-
given 3 sides, find area of this triangle
793 Solvers
-
Back to basics 8 - Matrix Diagonals
914 Solvers
-
Back to basics 16 - byte order
192 Solvers
-
Volume difference between Ellipsoid and Sphere
127 Solvers
-
Solving Quadratic Equations (Version 1)
481 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!