sptsizes.m

来自「有关matlab的电子书籍有一定的帮助希望有用」· M 代码 · 共 32 行

M
32
字号
function sz = sptsizes
%SPTSIZES Get size structure for laying out UIControls for SPTool and Clients.

%   Copyright (c) 1988-98 by The MathWorks, Inc.
% $Revision: 1.6 $

% ====================================================================
% defines sizes (in pixels) for various dimensions
sz.ih = 47;   %icon height
sz.iw = 42;   %icon width
sz.lw = 130;  %listbox width
sz.fus = 5;   %frame/uicontrol spacing
sz.ffs = 5;   %frame/figure spacing
sz.lfs = 3;   %label/frame spacing
if ~isempty(findstr(computer,'PC'))
    sz.lh = get(0,'defaultuicontrolfontsize')+10;   %label height   
else
    sz.lh = get(0,'defaultuicontrolfontsize')+4;   %label height 
end
sz.uh = 20;   %uicontrol height
sz.rw = 130;  %ruler width
sz.rih = 40;  %ruler icon height
sz.riw = (sz.rw-2*sz.ffs-2*sz.fus)/2;  %ruler icon width
sz.pmw = 14;  %plus/minus width
sz.lbs = 3;  %label/box spacing
sz.as = [50 40 20 30]; %spacing of main axes from [left bottom right top]
                       % of main axes port
scalefactor = (get(0,'screenpixelsperinch')/72)^.5;
sz.as = sz.as*scalefactor;
sz.ph = 60; %panner height
sz.bw = 110;  % button width

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?