Test if Figure is on screen
Syntax
[flag] = figflag('figurename
')
[flag,fig] = figflag('figurename
')
[...] = figflag('figurename
',silent)
Description
Use figflag
to determine if a particular Figure exists, bring a Figure to the foreground, or set the window focus to a Figure.
[flag] = figflag('figurename
')
returns a 1
if the Figure named '
figurename
'
exists and pops the Figure to the foreground; otherwise this function returns 0
.
[flag,fig] = figflag('figurename
')
returns a 1
in flag
, returns the Figure's handle in fig
, and pops the Figure to the foreground, if the Figure named '
figurename
'
exists. Otherwise this function returns 0
.
[...] = figflag('figurename
',silent)
pops the Figure window to the foreground if silent
is 0
, and leaves the Figure in its current position if silent
is 1
.
Examples
To determine if a Figure window named 'Fluid Jet Simulation'
exists, type
[flag,fig] = figflag('Fluid Jet Simulation')
MATLAB returns:
flag =
1
fig =
1
If two Figures with handles 1 and 3 have the name 'Fluid Jet Simulation'
, MATLAB returns:
flag =
1
fig =
1 3
See Also
figure
[ Previous | Help Desk | Next ]