Why this portion of code is still showing me an error of kind Subscript indices must either be real positive integers or logicals the indices are uint8 so real positive integers ??? 
    t = uint8( t_lbls(i) );
    te = uint8( test_lbls(e) ); 
    mat2conf(t,te) = mat2conf( t,te )+ 1;