Functions | |
if (isempty(view_fcn)) if(isempty(view_cmd)&&compare_versions(__gnuplot_version__() | |
endif endif | if (nargin > 3) print_usage() |
endif | if (nargout > 0) ocmd |
endif | if (nargin > 0) if(nargin< 3) zoom |
if (nargin< 2) fcn | |
if (nargin > 1) if(isa(fcn | |
else | error ("image_viewer: expecting second argument to be a function handle") |
endif endif | if (nargin > 2) if(isnumeric(zoom)&&isscalar(zoom)&&isreal(zoom)) view_zoom |
else | error ("image_viewer: expecting third argument to be a real scalar") |
Variables | |
function [ocmd, ofcn, ozoom] | |
persistent | view_fcn = "gnuplot_internal" |
persistent | view_zoom = 1 |
ofcn = view_fcn | |
ozoom = view_zoom | |
endif endif | view_cmd = cmd |
if | ( | nargin | , | |
1 | ||||
) |
if | ( | ) |
endif if | ( | nargout | , | |
0 | ||||
) |
if | ( | isempty(view_fcn) | ) |
function_handle view_fcn = "gnuplot_internal" |
view_zoom = 1 |