matlab 导出设置,matlab以编程方式为数字分配“导出设置” – >“加载设置”

我在

this thread的底部找到了这个解决方案:

% create an example fig that we want to format with style file 'foo'

plot(rand(14,10));

% get style sheet info

snam='foo'; % The name of your style file (NO extension)

s=hgexport('readstyle',snam);

%apply style sheet info

fnam='myfig.jpeg'; % your file name

s.Format = 'jpeg'; %I needed this to make it work but maybe you wont.

hgexport(gcf,fnam,s);

并且在您当前的文件夹中应该是一个名为“myfig.jpeg”的文件,这是您在“foo”中创建的导出设置的图形.如果要查看样式文件选项,请在命令行中键入s.它应该是这样的结构,其中包含所有导出设置.

s =

Version: '1'

Format: 'jpeg'

Preview: 'none'

Width: 'auto'

Height: 'auto'

Units: 'points'

Color: 'rgb'

Background: 'w'

FixedFontSize: '10'

ScaledFontSize: 'auto'

FontMode: 'scaled'

FontSizeMin: '8'

FixedLineWidth: '1'

ScaledLineWidth: 'auto'

LineMode: 'scaled'

LineWidthMin: '2'

FontName: 'Wingdings'

FontWeight: 'auto'

FontAngle: 'auto'

FontEncoding: 'latin1'

PSLevel: '2'

Renderer: 'auto'

Resolution: 'auto'

LineStyleMap: 'none'

ApplyStyle: '0'

Bounds: 'loose'

LockAxes: 'on'

ShowUI: 'on'

SeparateText: 'off'

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值