Trying to output the matrices in MATLAB