%% Create Confusion Matrix Chart from Numeric Confusion Matrix
% You can use confusionchart to create a confusion matrix chart from a numeric confusion matrix.
% Load a sample confusion matrix m and the associated class labels classLabels.

load('Cifar10ConfusionMat.mat','m','classLabels');
m
classLabels

%
% Create a confusion matrix chart from the numeric confusion matrix and the class labels.

cm = confusionchart(m,classLabels);

% Copyright 2018 The MathWorks, Inc.