Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Following is the error in my program

1 visualización (últimos 30 días)
Balaji M. Sontakke
Balaji M. Sontakke el 9 de Oct. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentarios
KALYAN ACHARJYA
KALYAN ACHARJYA el 9 de Oct. de 2018
TRAIN?
Balaji M. Sontakke
Balaji M. Sontakke el 9 de Oct. de 2018
train = 80 X 24
sample = 40 X 24
distance=Euclidean
K=3

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by