Machine learning program question

The program I’m asking my question about is in that link: http://read.pudn.com/downloads197/sourcecode/macos/928928/CancerDiagnosis.m__.htm Now, what does this command do exactly: testmat= matrix(idtest,:); and why it’s not giving this error: Subscript indices must either be real positive integers or logicals.


Link to Full Article: Machine learning program question