matlab怎么print两句话,MATLAB print

通常默认情况下,print命令输出图像为 8*5inches,无视屏幕显示尺寸

通过命令行修改的话有三步

1 设置paperposition为manual

set(gcf,'PaperPositionMode', 'manual')

[ auto | {manual} ]

2

设置paperunit set(gcf,'PaperUnits','inches')

[ {inches} | centimeters | normalized | points ]

3 设置paperposition

set(gcf,'PaperPosition',[left,bottom,width,height])

例如

set(gcf, 'PaperPositionMode', 'manual');

set(gcf, 'PaperUnits', 'points');

set(gcf, 'PaperPosition', [0 0 640 480]);

还有一个相关命令是papersize

paperposition

是placement,代表图像在paper中的所处位置。left和bottom计算好,就可以使图像在paper中居中

papersize是纸张大小;position要比size小的

Factory Default PaperPosition

The

factory defaultPaperPosition,

[0.25 2.5 8.0 6.0]

is

designed to print the figure on 8.5-by-11 inch paper in portrait

orientation. It results in a printed figure that is about as large

as can fit on the paper (with a one-quarter inch border on the left

and right sides) and is centered on the paper. The width of eight

inches and the height of six inches give an aspect ratio (ratio

ofwidthtoheight)

that is the same as the default figure aspect ratio on the

screen.

a4c26d1e5885305701be709a3d33442f.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值