Hello, hoping here somebody use matlab I do a question very simple (I don't know matlab at all and I have not idea how manage the matrixes)
I'm trying to use knnclassify in this way:
Qt Code:
  1. %pseudo-code
  2. %test is matrix M x N
  3. % group is 1..5
  4. %training is a matrix Q x N
  5.  
  6. Q=10000
  7. M=1000
  8.  
  9. for i=1: length(test)
  10. class(i) = knnclassify(test(i, : ), training, group);
  11. end
To copy to clipboard, switch view to plain text mode 
The problem is that I'd like use all training set. but it seems that the rows of training (Q) must be equal to the number of group (5). So in this way I can only use 5 examples from the traininset.
How can I do? (I' not an expert of matlab, just newbie)

thanks,