%set the width and heigth of figure
set(gcf, 'PaperUnits', 'points');
%set(gcf, 'paperposition', [xLeft yTop Width Heigth])
set(gcf, 'PaperPosition', [100 100 300 500]);
% you can change fileName to the name you want
print -dpdf -loose fileName.pdf
Publish Post
没有评论:
发表评论