
Plotting a confusion matrix (without using plotconfusion) with large values
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Image Analyst
le 1 Déc 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')

Plus de réponses (1)
Image Analyst
le 1 Déc 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 commentaires
Voir également
Catégories
En savoir plus sur Color and Styling dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!