confMatGet

Get confusion matrix from recognition results

Contents

Syntax

Description

confMatGet(desiredOutput, computedOutput) returns the confusion matrix of a given classifier based on

its desired output (ground truth) and computed output.

Example

desired=[1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5];
computed=[1 5 5 1 1 1 1 1 5 5 1 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 2 5 5 5 5 5 5 5 5 3 5 5 5];
confMat = confMatGet(desired, computed);
confMatPlot(confMat);

See Also

confMatPlot.


Top page   Next: clusterValidate.m   Prev:confMatPlot.m