Main Content

Classification confusion matrix

**Tip**

To plot a confusion chart for a deep learning workflow, use the `confusionchart`

function.

`[`

takes target and output matrices, `c`

,`cm`

,`ind`

,`per`

] = confusion(`targets`

,`outputs`

)`targets`

and `outputs`

,
and returns the confusion value, `c`

, the confusion matrix,
`cm`

, a cell array, `ind`

, that contains the sample indices
of class `i`

targets classified as class `j`

, and a matrix of
percentages, `per`

, where each row summarizes four percentages associated with
the `i`

-th class.