"matlab - implay's default size window" Code Answer


ah here we go:

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

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.

i then used implay(diff) to open an implay window.

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.

to get this, i used findall(0,'parent',0); - i could alternatively have used allchild(0);.

i assigned a variable to this: implayhandle=findall(0,'parent',0);

and looked at its properties:


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.

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).

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.

By Mikhas on April 16 2022

Answers related to “matlab - implay's default size window”

Only authorized users can answer the Search term. Please sign in first, or register a free account.