Using MATLAB to Solve Differential Equations
www.csun.edu › ~skatz › ece350from the command line. The second uses Simulink to model and solve a differential equation. Solving First Order Differential Equations with ode45 The MATLAB commands ode 23 and ode 45 are functions for the numerical solution of ordinary differential equations. They use the Runge-Kutta method for the solution of differential equations.
How Graph differential equations with Matlab
www.mathworks.com › matlabcentral › answersJan 17, 2018 · You have to plot the real and imaginary parts of each solution separately with ezplot. You also have to define the initial condition, y (0). Try this: syms y (x) ode = y*diff (y,x)+36*x == 0; ySol = dsolve (ode, y (0) == 0) figure subplot (2,1,1) ezplot (real (ySol (1))) subplot (2,1,2) ezplot (imag (ySol (1))) figure subplot (2,1,1)