|
Create a demo figure: |
| |
h=figure(1); |
| |
|
| Hide
the window (using the MATLAB figure handle): |
| |
winshowwin(h,'hide'); |
| Show
the window again (using the MATLAB figure handle) |
| |
winshowwin(h,'show'); |
| |
|
| Create
two demo figures: |
| |
h(1)=figure(1);
h(2)=figure(2); |
| Maximize
both figures (using their MATLAB figure handles) |
|
winshowwin(h,'maximize');
|
| Minimize
both figures (using their MATLAB figure handles) |
|
winshowwin(h,'minimize');
|
| Restore
both figures (to previous setting, i.e. maximized) |
| |
winshowwin(h,'restore');
|
| Restore
both figures to original settings (i.e. size and position
when created) |
| |
winshowwin(h,'show_default');
|
| Minimize
both figures (based on their partial title strings,
both containing the substring 'Fig') |
| |
winshowwin('Fig','minimize');
|
| Set
the flag to manipulate only the first window found |
| |
Options.AllWindows=0;
|
| Only
one of the figures will be restored (i.e. the first
found with 'Fig' in its name). |
| |
winshowwin('Fig','restore',Options);
|
| Restore
both figures to original settings (i.e. size and position
when created) |
| |
winshowwin('Fig,'show_default');
|
| Set
the flag to enable case-sensitive search of the name
strings |
| |
Options.CaseSensitive=1;
|
| No
action will be taken since the uppercase 'FIG' substring
does not appear in either of the figure namestrings |
| |
winshowwin('FIG','minimize',Options);
|
| Hide
only figure(1) (based on its unique title string) |
|
winshowwin('Figure
No. 1','hide'); |
| Set
the flag to specify that full name expected (rather
than partial) |
| |
Options.IsFullName=1;
|
| No
action taken since 'No. 1' is not the full name |
| |
winshowwin('No.
1','restore',Options); |
| Restore
figure(1) (based on its full title string) |
| |
winshowwin('Figure
No. 1','restore',Options); |
| |
|
| For
an example on how to manipulate external (non-MATLAB)
windows: |
| |
|
| Open
the default web browser at the Sounds Logical support
area (requires internet access). The title of the browser
window will contain the partial string 'Sounds Logical:
M-Packs: Support' |
| |
slmhelp
-web; |
| Hide
the browser window (using the non-MATLAB-window title
partial string) |
| |
winshowwin('Sounds
Logical: M-Packs: Support','hide'); |
| Restore
the browser window (using the non-MATLAB-window title
partial string) |
| |
winshowwin('Sounds
Logical: M-Packs: Support','restore'); |