The mapfun Matlab package