view 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
line wrap: on
line source
% statuscb - Returns status message timer callback function handle
%
% statuscb :: string => (timer, timer_event => void).
%
% Eg,
%   set(Timer,'StartFcn',statuscb('starting'));
%   set(Timer,'StopFcn',statuscb('stopping'));

function f=statuscb(msg)
	f=@(t,e)fprintf('%s: %s\n',mat2str(e.Data.time),msg);