- 积分
- 7
- 注册时间
- 2003-1-1
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2003-5-27 17:56:55
|
显示全部楼层
来自 江苏徐州
回复: 【讨论】如何使matlab编制的界面最大化?zz
转BBS 水木清华站-MathTools -coolor
刚刚从MathWorks上学到的,版上也有人问过,与大家分享
看完下面四段,你会有意外收获,即使你不想生成一个最大化窗口
------------------------------------------------------
这是我的原文:
How to create a maximized figure window ?
I usually use
h = figure;
set(h,'position',[0,0+20,1024,768-60]);
to get similar result. But it's stupid.
------------------------------------------------------
us的Re文:
another solution
set(gcf,'outerposition',...
get(0,'screensize'));
... just make sure that
get(gcf,'units')
equals
get(0,'units')
------------------------------------------------------
Alex的Re文:
Nice trick, us,
question is, why a useful feature like this one is not
documented (as I just read in technote 1204)?
regards, -Alex.
------------------------------------------------------
us的再次re文:
because officially it's an <undocumented> feature.
undoc features of each g-handle can be retrieved with this small code
snippet:
% eg, get a figures undocs
% ... start with yet another undoc :-)
set(0,'hideundocumented','off');
f=get(gcf);
set(0,'hideundocumented','on');
g=get(gcf);
ff=fieldnames(f);
gf=fieldnames(g);
df=ismember(ff,gf);
ff(~df)
us
------------------------------------------------------ |
|