Using MATLAB to Solve Differential Equations

Next we need to create a MATLAB m-file to calculate dy/dt. From the MATLAB Home menu select: New ! Function. The basic structure of a function file will appear in the editor window. Modify the file to read: function dy = f(t,y) dy = -2*y + (t>=0)-(t>=1); This creates a function that calculates the value of dy (actually dy/dt). The function is ................
................