title: Using a trained Neural Network to classify new data
body: <p>Am trying to use a trained neural network to classify new vehicles in Matlab. Each vehicle object has four features (4-D feature space). There are 3 classes of vehicles: small, medium and large. When I use a new input,the  network returns a 3x4 matrix. How do I obtain the predicted class from this matrix? 
  I used the following:</p>
  
  <pre><code>newprediction = sim(net,XM38)
  </code></pre>
  
  <p>The output is:</p>
  
  <pre><code>newprediction =
  
  0.0018    0.9915    0.9938    0.0018
  0.0694    0.0085    0.0062    0.0694
  0.9287    0.0001    0.0000    0.9287
  </code></pre>
  
  <p>How do I interpret these results and so obtain the predicted class?</p>