MATLAB: Plotting a confusion matrix (without using plotconfusion) with large values

colormapconfusion matriximagescStatistics and Machine Learning Toolbox

I am trying to plot this confusion matrix:
A = [1195 3 54;
0 631 34;
90 135 158];
I cannot use plotconfusion as I do not have access to NNT. I've tried to use colormap and imagesc, but have had no luck. Are my values too large? If they are, what do you suggest? Thank you.

Best Answer

Perhaps you mean this:
A = [1195 3 54;
0 631 34;
90 135 158];
imshow(A, [], 'InitialMagnification', 1600);
colorbar;
axis on;
% Set up figure properties:
% Enlarge figure to full screen.
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0 0 1 1]);
% Get rid of tool bar and pulldown menus that are along top of figure.
set(gcf, 'Toolbar', 'none', 'Menu', 'none');
% Give a name to the title bar.
set(gcf, 'Name', 'Demo by ImageAnalyst', 'NumberTitle', 'Off')