How to solve coupled differential equations numerically in matlab