Updated MATLAB examples