MATLAB Application Error:
Index exceeds matrix dimensions.