Functions | |
if (mod(nargs, 2)==1) tmp | |
if (ishandle(tmp)&&strcmp(get(tmp,"type"),"figure")) f | |
varargin (1) | |
elseif (isnumeric(tmp)&&tmp > 0 &&round(tmp)==tmp) f | |
else | error ("figure: expecting figure handle or figure number") |
if (!isempty(cf)&&cf!=0) if(isnan(f)||cf! | |
endif endif | if (rem(nargs, 2)==0) if(isnan(f)||init_new_figure) f |
elseif (nargs > 0) set(f | |
endif | set (0,"currentfigure", f) |
else | print_usage () |
endif | if (nargout > 0) h |
Variables | |
function | h |
f = NaN | |
init_new_figure = false | |
endif endif | cf = get (0, "currentfigure") |
elseif | ( | nargs | , | |
0 | ||||
) |
elseif | ( | isnumeric(tmp)&& | tmp, | |
0 && | roundtmp = =tmp | |||
) |
endif if | ( | nargout | , | |
0 | ||||
) |
if | ( | !isempty(cf)&&cf! | = 0 |
) |
if | ( | ishandle(tmp)&&strcmp(get(tmp,"type"),"figure") | ) |
if | ( | mod(nargs, 2) | = =1 |
) |
else print_usage | ( | ) |
endif set | ( | 0 | , | |
"currentfigure" | , | |||
f | ||||
) |
varargin | ( | 1 | ) |
f = NaN |
init_new_figure = false |