Class Definition: ConfusionMatrixChart

statistics: cmc = ConfusionMatrixChart ()

Create object cmc, a Confusion Matrix Chart object.

"DiagonalColor"

The color of the patches on the diagonal, default is [0.0, 0.4471, 0.7412].

"OffDiagonalColor"

The color of the patches off the diagonal, default is [0.851, 0.3255, 0.098].

"GridVisible"

Available values: on (default), off.

"Normalization"

Available values: absolute (default), column-normalized, row-normalized, total-normalized.

"ColumnSummary"

Available values: off (default), absolute, column-normalized,total-normalized.

"RowSummary"

Available values: off (default), absolute, row-normalized, total-normalized.

MATLAB compatibility – the not implemented properties are: FontColor, PositionConstraint, InnerPosition, Layout.

See also: confusionchart

Source Code: ConfusionMatrixChart

Method: disp

ConfusionMatrixChart: disp (cmc, order)

Display the properties of the ConfusionMatrixChart object cmc.

Method: sortClasses

ConfusionMatrixChart: sortClasses (cmc, order)

Sort the classes of the ConfusionMatrixChart object cmc according to order.

Valid values for order can be an array or cell array including the same class labels as cm, or a value like "auto", "ascending-diagonal", "descending-diagonal" and "cluster".

Example: 1

 

 ## Create a simple ConfusionMatrixChart Object

 cm = ConfusionMatrixChart (gca, [1 2; 1 2], {"A","B"}, {"XLabel","LABEL A"})
 NormalizedValues = cm.NormalizedValues
 ClassLabels = cm.ClassLabels

cm =

ConfusionMatrixChart with properties:

	NormalizedValues: [ 2x2 double ]
	ClassLabels: { 1x2 cell }


NormalizedValues =

   1   2
   1   2

ClassLabels =
{
  [1,1] = A
  [1,2] = B
}

                    
plotted figure