<< 2011-2 >>
Department of
Computer Science
 

COMS30127 Lab 1: Solving differential equations Matlab

Part 1: Solve numerically in Matlab the following differential equation on interval [0,3] with DT=0.01. Plot the function.

df/dt = f2 - 3f + exp(-t); f(0)=0

And add labels of the axes to the plot.


Part 2: Solve numerically the differential equation from Part 1 for the following values of DT: 0.01, 0.1, 0.5, 1. Plot the solutions on one graph, and add a legend. Consider what is the appropriate value of DT for this equation.


Once you have finished compare your solution with a model answer from a previous year, which is available here.

© 1995-2012 University of Bristol  |  Terms and Conditions
About this Page