Documentation

plotconfusion

Plot classification confusion matrix

Syntax

plotconfusion(targets,outputs)
plotconfusion(targets1,outputs1,'name1',...)

Description

plotconfusion(targets,outputs) displays the classification confusion grid.

plotconfusion(targets1,outputs1,'name1',...) displays a series of plots.

Examples

This example shows how to train a pattern recognition network and plot its accuracy.

[x,t] = simpleclass_dataset;
net = patternnet(10);
net = train(net,x,t);
y = net(x);
plotconfusion(t,y)

Was this topic helpful?