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.
引用格式
Parth Dethaliya (2025). Cm2Im (https://www.mathworks.com/matlabcentral/fileexchange/78005-cm2im), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2020a
兼容 R2013a 到 R2020a 的版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!