
Plotting a confusion matrix (without using plotconfusion) with large values
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
dunlop11
el 1 de Dic. de 2015
Comentada: dunlop11
el 1 de Dic. de 2015
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 comentarios
Respuesta aceptada
Image Analyst
el 1 de Dic. de 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')

Más respuestas (1)
Image Analyst
el 1 de Dic. de 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 comentarios
Ver también
Categorías
Más información sobre Color and Styling en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!