how to display test data confusion matrix in matlab (neural networks)
<pre><code>&gt;&gt;net = patternnet([100 100]);
&gt;&gt;net = train(net, input_data', target_data');
&gt;&gt;view(net);
&gt;&gt;y = net(input_data');
&gt;&gt;plotconfusion(target_data',y);
</code></pre>

<p>In this codes,ploted confusion matrix is total confusion matrix, how to get just test data confusion matrix???
<a href="https://i.stack.imgur.com/08htX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/08htX.png" alt="generated by toolbox"></a></p>

<p><a href="https://i.stack.imgur.com/FJ4B5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FJ4B5.png" alt="generated by code "></a></p>