title: Assign values to knn search elements
body: <p>I need to search the nearest 3 neighbors to my sample data.  My code is the following:</p>
  
  <pre><code>Sample = vec_1;      
  
  Training = [vec_2;vec_3;vec_4;vec_5;vec_6];
  
  IDX = knnsearch(Training,Sample,'K',3);
  
  disp('Results: ');
  disp (IDX);
  </code></pre>
  
  <p>I got:</p>
  
  <pre><code>Results: 
       5     3     2
  </code></pre>
  
  <p>My question is this: I want to assign image to each value:</p>
  
  <pre><code>for example for 5, img1.jpg
              for 3, img2.jpg........ so on
  </code></pre>