Mercurial > hg > ishara
view general/algo/optpause.m @ 8:f0a3d7d7a0e3
Renamed cat_sep function to catsep
author | samer |
---|---|
date | Mon, 14 Jan 2013 14:54:10 +0000 |
parents | e44f49929e56 |
children | 03694e5c8365 |
line wrap: on
line source
function optpause(opt) % optpause - Optionally pause and/or update graphics % % optpause :: struct { % pause :: natural/0 ~'0-nopause, 1-pause, N-timed pause in ms'; % drawnow :: bool/0 ~'flush graphics before pausing' % } => void. ps=getparam(opt,'pause',0); dn=getparam(opt,'drawnow',1); if ps, if ps>=10, pause(ps/1000); else pause; end elseif dn, drawnow; end