Cm2Im
Version 1.0.1 (1.43 KB) by
Parth Dethaliya
Convert your confusion matrix to image with gray colored base boxes (based on percentage and text color of your choice.
Unlike in-built function in matlab to plot Confusion matrix named "plotconfusion" here you can select number of pixels per value in confusion matrix.
for example,
if it is binary classification and CM is 2*2 then you can have 200*200 sized output image with 100*100 sized box for each value or of any other value you need. also you can change color of text written in image and font size.
Cite As
Parth Dethaliya (2024). Cm2Im (https://www.mathworks.com/matlabcentral/fileexchange/78005-cm2im), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2020a
Compatible with R2013a to R2020a
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.