|
Create a demo figure: |
| |
h=figure(1); |
| |
|
| Disable
the window (using the MATLAB figure handle): |
| |
winenablewin(h,0); |
| Re-enable
the window (using the MATLAB figure handle) |
| |
winenablewin(h); |
| |
|
| Create
two demo figures: |
| |
h(1)=figure(1);
h(2)=figure(2); |
| Disable
both windows (using their MATLAB figure handles) |
|
winenablewin(h,0);
|
| Re-enable
both figures (based on their partial title strings, both containing
the substring 'Fig') |
|
winenablewin('Fig');
|
| Set
the flag to manipulate only the first window found |
| |
Options.AllWindows=0;
|
| Only
one of the figures will be disabled (i.e. the first found with 'Fig'
in its name). |
| |
winenablewin('Fig',0,Options);
|
| Re-enable
both figures (based on their partial title strings, both containing
the substring 'Fig') |
| |
winenablewin('Fig');
|
| 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 |
| |
winenablewin('FIG',0,Options);
|
| Disable
only figure(1) (based on its unique title string) |
|
winenablewin('Figure
No. 1',0); |
| Re-enable
both figures (based on their partial title strings, both containing
the substring 'Fig') |
| |
winenablewin('Fig'); |
| 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 |
| |
winenablewin('No.
1',0,Options); |
| Disable
figure(1) (based on its full title string) |
| |
winenablewin('Figure
No. 1',0,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; |
| Disable
the browser window (using the non-MATLAB-window title partial string) |
| |
winenablewin('Sounds
Logical: M-Packs: Support',0); |
| Re-enable
the browser window (using the non-MATLAB-window title partial string)
|
| |
winenablewin('Sounds
Logical: M-Packs: Support',1); |