Activity analysis toolbox for Matlab