필터 지우기
필터 지우기

how to calculate total hamming distance?

조회 수: 2 (최근 30일)
sara
sara 2014년 11월 11일
댓글: sara 2014년 11월 11일
hi guys i have this code which i was running to calculate hamming distance:
D = pdist(AA,'minkowski',1);
D_matrix = squareform(D);
Z = [0; diag(D_matrix,1)]
the output of this file is the hamming distance for my matrix as ( 0 2 2 3 4 ...) i want to calculate the total hamming distance of it. which is the summation of hamming distance (0+2+2+3+4...) how to do it?

채택된 답변

the cyclist
the cyclist 2014년 11월 11일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Hamming에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by