📄 enlargefig.m
字号:
function enlargefig(factor)% ENLARGEFIG -- make figure larger for printing/viewing.% % This function changes the 'position' and 'paperposition'% properties of the current figure by a factor 2.%% ENLARGEFIG(F) uses F as factor.%% See also PRA4%% $Revision: 1.2 $ $Date: 2001/09/28 14:24:32 $% RH, 1999?%// BK 07-May-2001%not ok, bk: set(gcf,'paperposition',get(gcf,'paperposition')*factor)if (nargin==0) factor = 2;% defaultendpos = get(gcf,'position');ppos = get(gcf,'paperposition');pos(1:2) = pos(1:2).*0;pos(3:4) = pos(3:4).*factor;ppos(3:4) = ppos(3:4).*factor;set(gcf, ... 'position', pos, ... 'paperposition', ppos);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -