matlab导出pdf时,去除pdf白色边框

参考链接

https://ww2.mathworks.cn/matlabcentral/answers/12987-how-to-save-a-matlab-graphic-in-a-right-size-pdf

代码示例

h = figure;
plot(1:10);
set(h,'Units','Inches');
pos = get(h,'Position');
set(h,'PaperPositionMode','Auto','PaperUnits','Inches','PaperSize',[pos(3), pos(4)])
print(h,'filename','-dpdf','-r0')
上一篇:【一起来学java数据结构】——排序


下一篇:pygame小游戏开发 - 俄罗斯方块