matlab assignment

profileLeila@
week_2_-_laboratory.docx

Drexel University, College of Engineering 2015-2016 Academic Year

Drexel University Office of the Dean of the College of Engineering ENGR 232 – Dynamic Engineering Systems

Week 2 Laboratory Assignment

Growth of biological samples can be modeled using an autonomous first order differential equation:

, y(0) = 1

Obtain a solution to this DE using (a) Euler’s method using Δt=.1 and (b) ODE with Δt=0.1. The analytical solution is given as

Estimate the MSE in each case.

Use the time window from t=0 to t=5.

1. Plot the Euler’s solutions, ODE solution and analytical solution on a single plot, annotated. The MSE values must also be displayed.

2. Use Matlab to get the EQUILIBRIUM value and determine the time instant when it is reached.

3. Find how long does it take the growth to grow from 2 to 4.5? Provide answers to part (2) and (3) as comments or display them on the plot.

Note: Submit a published pdf file of your script with convention lastname_initials_lab2.m. The published document must include the function with convention ode_eulerf.m. All figures must be annotated (labels, legends, markers, title, display of MSE values, and if possible answers to part (2) and part (3).