找回密码
 注册
Simdroid-非首页
查看: 542|回复: 5

【讨论】如何使matlab编制的界面最大化?

[复制链接]
hniat 该用户已被删除
发表于 2003-5-25 07:34:41 | 显示全部楼层 |阅读模式 来自 江西南昌
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2003-5-25 08:43:17 | 显示全部楼层 来自 新加坡

回复: 【讨论】如何使matlab编制的界面最大化?

Simdroid开发平台
在画那些控件附近适当的地方用:
  
  1. set(gcf,'units','normalized','Position',[0.0,0,0.95,0.95]);
复制代码

  
不过你的那些其他的控件的Units最好用Normalized。
  
:I
发表于 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
------------------------------------------------------
发表于 2003-9-28 00:03:44 | 显示全部楼层 来自 上海闸北区

回复: 【讨论】如何使matlab编制的界面最大化?

真是高人啊,这个问题让我为难了半年。
谢谢楼上的师兄。
发表于 2004-5-29 13:16:20 | 显示全部楼层 来自 上海

回复: 【讨论】如何使matlab编制的界面最大化?

推荐大家有空看看yzl的发言内容!
  
SCIE的标准答案:  
Figure窗口辅助操作函数-支持中文  
http://www.simwe.com/cgi-bin/ut/topic_show.cgi?id=30747&h=1#161775
发表于 2004-8-12 22:56:33 | 显示全部楼层 来自 湖北武汉

回复: 【讨论】如何使matlab编制的界面最大化?

figure的这些属性搞不清
  
‘ApplicationData’
‘CurrentModifier’
‘HelpTopicKey’
‘HelpTopicMap’
‘Serializable’
‘WaitStatus’
...
  
有没有人解释下? 
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-5-2 16:17 , Processed in 0.044361 second(s), 14 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表