In Exercise we will deal with the differential equation y′ = −2y + 2 cos t sin 2t. In preparation create the function M-file

and save the file as steady.m.
Another nice feature of MATLAB’s solvers is the ability to output solutions at specified times. This is useful when you want to compare two functions at specified time points or place the output from multiple calls to ode45 in a matrix, where it is required that the rows have equal length. Enter [t,y] = ode45(@steady,0:.25:3,1) then enter [t,y]. This should clarify what is going on.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.