Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Following is the error in my program

조회 수: 1 (최근 30일)
Balaji M. Sontakke
Balaji M. Sontakke 2018년 10월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
Index exceeds matrix dimensions.
Error in threshold (line 13)
correctMinimum(j) = allMinimum(i);
Error in knnclassify (line 177)
[minThreshold,maxThreshold] = threshold(AVM,recognition);
Error in maintotaldemo (line 76)
predictlabel = knnclassify(P_test, P_train, train_label,3,'euclidean','nearest');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[dIndex,dista]= knnsearch(TRAIN,sample,'distance', distance,'K',K)
%%calculating FAR and FRR using threshold
personsNo = 10;
test=10
for i=1:personsNo
originalTest(1,((i-1)*12)+1:((i-1)*12)+12) = i;
end
recognition = (originalTest'==test);
AVM = dista(2:40,:);
[minThreshold,maxThreshold] = threshold(AVM,recognition);
[FAR,FRR] = ROC(AVM,minThreshold,maxThreshold);
plot(FAR,FRR);
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 10월 9일
TRAIN?
Balaji M. Sontakke
Balaji M. Sontakke 2018년 10월 9일
train = 80 X 24
sample = 40 X 24
distance=Euclidean
K=3

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by