Solver Stopped Prematurely. Matlab