Matlab-拼版的默认大小窗口 [英] Matlab - implay's default size window

查看:120
本文介绍了Matlab-拼版的默认大小窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 implay 播放我想要的某些帧,但事实是弹出的窗口尺寸有点小,因此用户必须自己将其最大化,是否有任何方法可以控制弹出窗口的大小?

I am using implay to play some frames i want, the thing is that window size that pops is a bit small,so the user must maximize it by himself, is there any way to control the size of the window that pops up?

推荐答案

我们来了:

implay(Diff);
set(findall(0,'tag','spcui_scope_framework'),'position',[150 150 700 550]);

2012年作品b. (注意:如果您打开了一个以上的填充窗口,这会将它们设置为相同的大小)

Works in 2012b. (Note: if you have more than one implay window open, this will set them all to the same size)

因此,您可以学习如何为自己找到这种东西,我所做的就是从没有其他打开的窗口的工作区开始.

So you can learn how to find this kind of stuff for yourself, what I did was start with a workspace with no other open windows.

然后我用implay(Diff)打开一个填充窗口.

I then used implay(Diff) to open an implay window.

然后,我使用findall(0)查找0以下的所有Figure/uicontrol句柄,这是根工作区.但是太多了!它们大多数是implay窗口的子组件-菜单,按钮等.因此,我只需要由根工作区创建的第一个组件.

I then used findall(0) to find all of the figure/uicontrol handles under 0, which is the root workspace. But there were too many! Most of them are the subcomponents of the implay window - the menus, buttons, etc. So, I only needed the first component which was created by the root workspace.

为此,我使用了findall(0,'Parent',0);-我也可以使用allchild(0);.

To get this, I used findall(0,'Parent',0); - I could alternatively have used allchild(0);.

我为此分配了一个变量:ImplayHandle=findall(0,'Parent',0);

I assigned a variable to this: ImplayHandle=findall(0,'Parent',0);

并查看其属性:

get(ImplayHandle);

通过这些内容,Tag似乎是窗口'spcui_scope_framework'的标识符.我还注意到Position属性的大小与图形窗口的大小相似,这很有希望.

Looking through these, the Tag seemed to be an identifier of the window, 'spcui_scope_framework'. I also noticed the Position property had a similar size to that of a figure window, which was promising.

因此,为了进行检查,我尝试了findall(0,'Tag','spcui_scope_framework');,我发现只返回了一个句柄(子组件或菜单项中的任何一个也未标记有相同的Tag,这是可能的).

So, to check, I tried findall(0,'Tag','spcui_scope_framework'); and I was able to see that only a single handle was returned (none of the subcomponents or menu items were also labelled with the same Tag, which was a possibility).

最后,我关闭了打开的窗口,然后再次使用implay(Diff);打开了一个新窗口.我使用set命令尝试更改窗口大小:

Finally, I closed the open window, then opened a new window using implay(Diff); again. I used the set command to try to change the window size:

set(findall(0,'tag','spcui_scope_framework'),'position',[150 150 700 550]);

并且看到窗口的大小确实发生了改变,正如希望的那样.

And saw that the window size had indeed changed, as hoped.

这篇关于Matlab-拼版的默认大小窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆