title: how do i classify text files using knn?
body: <p>I have text file that contain numerical code. of course number of codes in files are different. I need to classify these files using knn algorithm in matlab. I tried to use the knnclassify function that is written as follows: </p>
  
  <p>knnclassify (sample, training, group)</p>
  
  <p>but in this function sample and training must be matrices with the same number of columns. however, as I told before number of codes in my files are different. Is there another function that I can use? Can someone help me?</p>