annotate sched/statuscb.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents 7357e1dc2ad6
children
rev   line source
samer@0 1 % statuscb - Returns status message timer callback function handle
samer@0 2 %
samer@2 3 % statuscb :: string => (timer, timer_event => void).
samer@0 4 %
samer@0 5 % Eg,
samer@0 6 % set(Timer,'StartFcn',statuscb('starting'));
samer@0 7 % set(Timer,'StopFcn',statuscb('stopping'));
samer@0 8
samer@2 9 function f=statuscb(msg)
samer@2 10 f=@(t,e)fprintf('%s: %s\n',mat2str(e.Data.time),msg);