Basic MATLAB utilities