声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1123|回复: 0

MATLAB的隐藏特性

[复制链接]
发表于 2006-4-1 08:39 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
<P>刚刚从MathWorks上学到的,版上也有人问过,与大家分享 <BR>看完下面四段,你会有意外收获,即使你不想生成一个最大化窗口 <BR><BR>------------------------------------------------------ <BR>这是我的原文: <BR>How to create a maximized figure window ? <BR>I usually use <BR>   h = figure; <BR>   set(h,'position',[0,0+20,1024,768-60]); <BR>to get similar result. But it's stupid. <BR>------------------------------------------------------ <BR>us的Re文: <BR>another solution <BR><BR>     set(gcf,'outerposition',... <BR>         get(0,'screensize')); <BR>... just make sure that <BR>     get(gcf,'units') <BR>equals <BR>     get(0,'units') <BR>------------------------------------------------------ <BR>Alex的Re文: <BR>Nice trick, us, <BR><BR>question is, why a useful feature like this one is not   <BR>documented (as I just read in technote 1204)? <BR><BR>regards, -Alex. <BR>------------------------------------------------------ <BR>us的再次re文: <BR>because officially it's an &lt;undocumented&gt; feature. <BR>undoc features of each g-handle can be retrieved with this small code <BR>snippet: <BR><BR>% eg, get a figures undocs <BR>% ... start with yet another undoc :-) <BR>    set(0,'hideundocumented','off'); <BR>    f=get(gcf); <BR>    set(0,'hideundocumented','on'); <BR>    g=get(gcf); <BR>    ff=fieldnames(f); <BR>    gf=fieldnames(g); <BR>    df=ismember(ff,gf); <BR>    ff(~df) <BR>us <BR>------------------------------------------------------ <BR>我试了一下真的发现好多隐藏特性,以后每个句柄都可以试试了</P>
回复
分享到:

使用道具 举报

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-14 10:29 , Processed in 0.064476 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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