Following is the error in my program while calculating ROC

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);

5 Comments

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:
sum(dataVerify(initial:initial+9,i));
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.
Dear KSSV, what is wrong with my program, is not possible to implement such concept
What happen sir, you are not answering

Sign in to comment.

Answers (0)

Asked:

on 12 Oct 2018

Edited:

on 27 Oct 2018

Community Treasure Hunt

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

Start Hunting!