Problem:
For the following differential equation, provide the ode45() command used to solve it in MATLAB. Also, provide the function that stores this differential equation so that ode45 can invoke it.
xy'-2y=x
Additional Information:
This question belongs to Mathematics as well as it discusses about providing the differential equation function in MATLAB with command. The MATLAB file has been attached along with the solution.