The solve function returns one of many. Matlab has several different functions built-ins for the numerical solution of ODEs. To solve this equation with Matlab you will enter the following code roots 1 -3 2 and Matlab will give you the roots of the polynomial equation If the equation was the following.
To solve this equation with Matlab you will enter the following code roots 1 -3 2 and Matlab will give you the roots of the polynomial equation If the equation was the following.
You will have y 1 y 2 y 3 and y 4 as your unknowns. Solve differential algebraic equations DAEs by first reducing their differential index to 1 or 0 using Symbolic Math Toolbox functions and then using MATLAB solvers such as ode15i ode15s or ode23t. These interactive lessons are available only to users with access to Online Training Suite. Solve returns the solutions in a structure array.