
Plotting a confusion matrix (without using plotconfusion) with large values
2 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
Image Analyst
on 1 Dec 2015
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')

More Answers (1)
Image Analyst
on 1 Dec 2015
What does "plot" mean to you? You can display the values of A simply by putting the letter A on its own line of code. Did you want some other kind of display?
0 Comments
See Also
Categories
Find more on Color and Styling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!