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.
116 Solvers
387 Solvers
730 Solvers
868 Solvers
Matrix of almost all zeros, except for main diagonal
154 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!