%Separate the test data into 10 classes to calculate the accuracy


test_class1=[];
test_class2=[];
test_class3=[];
test_class4=[];
test_class5=[];
test_class6=[];
test_class7=[];
test_class8=[];
test_class9=[];
test_class10=[];

i1=1;
i2=1;
i3=1;
i4=1;
i5=1;
i6=1;
i7=1;
i8=1;
i9=1;
i10=1;

for row = 1:333
    if test_data(row,3)==1
        test_class1(i1,1)=data(row,1);
        test_class1(i1,2)=data(row,2);
        i1=i1+1;
    end
    
    if test_data(row,4)==1
        test_class2(i2,1)=data(row,1);
        test_class2(i2,2)=data(row,2);
        i2=i2+1;
    end
    
    if test_data(row,5)==1
        test_class3(i3,1)=data(row,1);
        test_class3(i3,2)=data(row,2);
        i3=i3+1;
    end
    
    if test_data(row,6)==1
        test_class4(i4,1)=data(row,1);
        test_class4(i4,2)=data(row,2);
        i4=i4+1;
    end
    
    if test_data(row,7)==1
        test_class5(i5,1)=data(row,1);
        test_class5(i5,2)=data(row,2);
        i5=i5+1;
    end
    
    if test_data(row,8)==1
        test_class6(i6,1)=data(row,1);
        test_class6(i6,2)=data(row,2);
        i6=i6+1;
    end
    
    if test_data(row,9)==1
        test_class7(i7,1)=data(row,1);
        test_class7(i7,2)=data(row,2);
        i7=i7+1;
    end
    
    if test_data(row,10)==1
        test_class8(i8,1)=data(row,1);
        test_class8(i8,2)=data(row,2);
        i8=i8+1;
    end
    
    if test_data(row,11)==1
        test_class9(i9,1)=data(row,1);
        test_class9(i9,2)=data(row,2);
        i9=i9+1;
    end
    
    if test_data(row,12)==1
        test_class10(i10,1)=data(row,1);
        test_class10(i10,2)=data(row,2);
        i10=i10+1;
    end
    
    
end
