Using MATLAB to Solve Differential Equations
www.csun.edu › ~skatz › ece350dx dt =−3x−2y+cos2t We will use the ode45 command to solve the system of first order differential equations: dx dt =−3x−2y+cos2t dy dt =x We place these two equations into a column vector, z, where: z= x y! " # # $ % & & and dz dt = dx dt dy dt! " # # # # $ % & & & & A function is created in a MATLAB m-file to define dz/dt named f2 ...