title: How to find the decision boundary for two set of data for knn classifier
body: <p>I have two sets,</p>
  
  <pre><code>N1 = 10; N2 = 15; % Class sizes
  set1=[0.333; 0.509; 0.607; 1.172; 0.275; 0.762; 0.850; 0.920; 0.556; -0.046];
  set2=[ 0.295; -0.203; -0.097; 0.633; 0.147; 0.356; 0.235; -0.054; -0.024; 0.377; -0.180; 0.512; 0.428; -0.129; 0.094];
  </code></pre>
  
  <p>I want to find the decision boundary and decision regions for the (3,1)nearest neighbhor classifier. Any ideas, How to do this?</p>