% In class example, October 27, 2016
% -Michael Weeks
function checkcallback(object, ignore) 

global count

count = count + 1;
disp(sprintf('you have clicked this %d times.', count));

if (get(object, 'Value'))
    disp('checked');
else
    disp('not checked');
end


