Differential Equations - MATLAB & Simulink Example
www.mathworks.com › help › matlabThe equation is written as a system of two first-order ordinary differential equations (ODEs). These equations are evaluated for different values of the parameter μ. For faster integration, you should choose an appropriate solver based on the value of μ. For μ = 1, any of the MATLAB ODE solvers can solve the van der Pol equation efficiently.
Using MATLAB to Solve Differential Equations
www.csun.edu › ~skatz › ece350In this example we will solve the first order differential equation: dy dt +2y=u(t)−u(t−1) over the range 0 ≤ t ≤ 5. We will assume that the initial value y(0) = 0. The first step is to write the equation in the form: dy dt =−2y+u(t)−u(t−1) Next we need to create a MATLAB m-file to calculate dy/dt. From the MATLAB Home menu select: New !