dataVerify is a logical matrix of dimension 40*5. YOu are changing the indexinitial by using:
initial = i*10+1;
And you are extracting values from it using:
sum(dataVerify(initial:initial+9,i));
After few iterationsinitial+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.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
5 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/423559-following-is-the-error-in-my-program-while-calculating-roc#comment_622505
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/423559-following-is-the-error-in-my-program-while-calculating-roc#comment_622505
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/423559-following-is-the-error-in-my-program-while-calculating-roc#comment_622513
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/423559-following-is-the-error-in-my-program-while-calculating-roc#comment_622513
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/423559-following-is-the-error-in-my-program-while-calculating-roc#comment_622526
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/423559-following-is-the-error-in-my-program-while-calculating-roc#comment_622526
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/423559-following-is-the-error-in-my-program-while-calculating-roc#comment_623021
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/423559-following-is-the-error-in-my-program-while-calculating-roc#comment_623021
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/423559-following-is-the-error-in-my-program-while-calculating-roc#comment_623596
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/423559-following-is-the-error-in-my-program-while-calculating-roc#comment_623596
Sign in to comment.