将图像保存为png将图像旋转到MATLA中的90度

时间:2018-06-12 16:21:33

标签: matlab matlab-figure

我使用以下代码将图像保存到文件

set(gcf, 'PaperUnits','normalized');
set(gcf, 'PaperPosition', [0 0 1 1]);
set(gcf,'PaperOrientation','l');
print -dpng graphs/p1_effect_of_count_and_selB;

图像保存为 enter image description here

我尝试使用set(fig,'PaperOrientation',portrait');建议here,但在这种情况下,不会保存任何图片。另外,我没有使用print(fig,'-dpng',pngName);来保存文件。有人可以为print -dpng graphs/pngName;

建议解决方案

0 个答案:

没有答案