comparison general/algo/iterate_timed.m @ 37:beb8a3f4a345

Renamed prefs to options throughout.
author samer
date Mon, 28 Jan 2013 10:52:11 +0000
parents 0ce3c2070089
children
comparison
equal deleted inserted replaced
36:9e7be347b3a0 37:beb8a3f4a345
19 % -> timer, (A=>void) ~'function to seek to given state'. 19 % -> timer, (A=>void) ~'function to seek to given state'.
20 % 20 %
21 % NB: Unlike ITERATE, this does NOT respect the id, save, and recover properties. 21 % NB: Unlike ITERATE, this does NOT respect the id, save, and recover properties.
22 % Neither does it respect the OPTPAUSE property 'pause'. 22 % Neither does it respect the OPTPAUSE property 'pause'.
23 23
24 opts=prefs('its',inf,'drawnow',0, 'quiet', 0, 'defer', 0, ... 24 opts=options('its',inf,'drawnow',0, 'quiet', 0, 'defer', 0, ...
25 'busy_mode','queue','exec_mode','fixedRate', ... 25 'busy_mode','queue','exec_mode','fixedRate', ...
26 'onfinish',@nop,'onstart',@nop,'onstop',@nop,varargin{:}); 26 'onfinish',@nop,'onstart',@nop,'onstop',@nop,varargin{:});
27 27
28 it={nextfn,X0}; 28 it={nextfn,X0};
29 if isfield(opts,'pre') || isfield(opts,'post') 29 if isfield(opts,'pre') || isfield(opts,'post')