|
Create a demo figure: |
| |
h=figure(1); |
| |
|
| Make
the window on top (using the MATLAB figure handle): |
| |
winontop(h); |
| Delete
original, then create two new figures: |
| |
close(h);
h(1)=figure(1); h(2)=figure(2); |
| Make
both figures on top of all other (using their MATLAB
figure handles) |
|
winontop(h);
|
| Delete
original, then create two new figures: |
| |
close(h);
h(1)=figure(1); h(2)=figure(2); |
| Make
both figures on top (based on their partial title strings,
both containing the substring 'Fig') |
|
winontop('Fig');
|
| Set
the flag to manipulate only the first window found |
| |
Options.AllWindows=0;
|
| Delete
original, then create two new figures: |
| |
close(h);
h(1)=figure(1); h(2)=figure(2); |
| Only
one of the figures will be put on top (i.e. the first
found with 'Fig' in its name). |
| |
winontop('Fig',Options);
|
| Delete
original, then create two new figures: |
| |
close(h);
h(1)=figure(1); h(2)=figure(2); |
| 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 |
| |
winontop('FIG',Options);
|
| Put
only figure(1) on top (based on its unique title string) |
|
winontop('Figure
No. 1'); |
| Delete
original, then create two new figures: |
| |
close(h);
h(1)=figure(1); h(2)=figure(2); |
| 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 |
| |
winontop('No.
1',Options); |
| Put
only figure(1) on top (based on its full title string) |
| |
winontop('Figure
No. 1',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; |
| Put
the browser window on top (using the non-MATLAB-window
title partial string) |
| |
winontop('Sounds
Logical: M-Packs: Support'); |