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

2 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

Image Analyst
Image Analyst am 1 Dez. 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')

Weitere Antworten (1)

Image Analyst
Image Analyst am 1 Dez. 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?

Kategorien

Mehr zu Color and Styling finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by