MATLAB Answers


Following is the error in my program while calculating ROC

Asked by Balaji M. Sontakke on 12 Oct 2018 at 1:58
Latest activity Commented on by Balaji M. Sontakke about 2 hours ago
 I have attached my program files  
 Index exceeds matrix dimensions.
 Error in ROC (line 16)
        selfVerification(i) = sum(dataVerify(initial:initial+9,i));   %9
 Error in maintotaldemo (line 105)
 [FAR,FRR] = ROC(AVM,minThreshold,maxThreshold);


Why don't you keep all files in a folder, zip them and attach? Users have to download individual file and check...extra work..:|

dataVerify is a logical matrix of dimension 40*5. YOu are changing the index initial by using:

initial = i*10+1;

And you are extracting values from it using:


After few iterations initial+9 is going beyond size i.e more then 40, so the error. If we know the logic behind or what you are trying to do..then we can help.

I want to calculate FAR, FRR and its Plot using min threshold and max threshold. I have the total of 10 classes [1,2,3,4,5......10] One class having 12 samples from which 8  
samples for training, like (10 * 8 = 80 samples for training).  Remaining 4 samples for testing, like that(10 * 4=40 samples for testing. 
Now, I need to find threshold values, which will assist me in identifying Threshold, FAR, FRR, by using Matlab.  

Sign in to comment.

0 Answers