12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

figflagPurpose2figflagTest if figure is on screenSyntaxDescription[flag] = figflag('figurename')[flag,fig] = figflag('figurename')[...] = figflag('figurename',silent)Use figflag to determine if a particular figure exists, bring a figure to theforeground, 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 thisfunction returns 0.[flag,fig] = figflag('figurename') returns a 1 in flag, returns thefigure’s handle in fig, and pops the figure to the foreground, if the figurenamed 'figurename' exists. Otherwise this function returns 0.[...] = figflag('figurename',silent) pops the figure window to theforeground if silent is 0, and leaves the figure in its current position if silentis 1.ExamplesTo determine if a figure window named 'Fluid Jet Simulation' exists, type[flag,fig] = figflag('Fluid Jet Simulation')<strong>MATLAB</strong> returns:flag =1fig =1If two figures with handles 1 and 3 have the name 'Fluid Jet Simulation',<strong>MATLAB</strong> returns:flag =1fig =1 3See Alsofigure2-158

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!