Solver Stopped Prematurely Matlab