Testing MATLAB Code