将混淆矩阵保存为图像文件

时间:2022-03-09 19:33:08

Is there a way in matlab to store the results of plotconfusion (x,y) to a specified file location as an image file? Like a code version of save as?

matlab中有没有办法将plotconfusion(x,y)的结果存储到指定的文件位置作为图像文件?像保存为的代码版本?

1 个解决方案

#1


As a figure file, you want to use saveas() ("help saveas"). As an image file, try print() ("help print"). Examples:

作为图形文件,您想要使用saveas()(“help saveas”)。作为图像文件,请尝试print()(“帮助打印”)。例子:

print(gcf, '-dpng', 'out.png');
saveas(gcf, 'out.fig');

#1


As a figure file, you want to use saveas() ("help saveas"). As an image file, try print() ("help print"). Examples:

作为图形文件,您想要使用saveas()(“help saveas”)。作为图像文件,请尝试print()(“帮助打印”)。例子:

print(gcf, '-dpng', 'out.png');
saveas(gcf, 'out.fig');