其他分享
首页 > 其他分享> > matlab导出pdf时,去除pdf白色边框

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')

标签:set,Inches,示例,pos,边框,matlab,pdf
来源: https://blog.csdn.net/qq_42988706/article/details/121747926