Various MATLAB utilities