|
Create a demo figure: |
| |
h=figure(1); |
| |
|
| Replace
the MATLAB icon with the 'question-mark' icon (using
the MATLAB figure handle): |
| |
winchangeicon(h,'question'); |
| |
|
| Create
two demo figures: |
| |
h(1)=figure(1);
h(2)=figure(2); |
| Replace
the MATLAB icons with the 'exclamation-mark' icon (using
the MATLAB figure handles): |
|
winchangeicon(h,'warning');
|
| Replace
the MATLAB icons with the homemade icon (in 'myicon.ico',
distributed with M-Utilities) (using the MATLAB figure
handles) |
|
winchangeicon(h,'myicon.ico');
|
| Set
the flag to manipulate only the first window found |
| |
Options.AllWindows=0;
|
| Only
one of the figures will have its icon changed (i.e.
the first found with 'Fig' in its name). |
| |
winchangeicon('Fig','error',Options);
|
| 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 |
| |
winchangeicon('FIG','windows',Options);
|
| Change
the icon figure(1) only (based on its unique title string) |
|
winchangeicon('Figure
No. 1','windows'); |
| 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 |
| |
winchangeicon('No.
1','question',Options); |
| Change
the icon figure(1) (based on its full title string) |
| |
winchangeicon('Figure
No. 1','question',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; |
| Change
the browser window icon to 'myicon.ico' (using the non-MATLAB-window
title partial string) |
| |
winchangeicon('Sounds
Logical: M-Packs: Support','myicon.ico'); |