
Lecture 13: Monday February 28, 2011:
Announcements:
Nothing is due today .
Case 2 resubmission is due Wednesday, March 2. Be sure to submit you’re your
original and the new version of your solution. Please take advantage of Prof.
Sawicki’s Office Hours on M’s and T’s from 4-5PM 4212C EB3. Ben’s hours are
still being held Thursday afternoons.
SH6 and Case 3 will be posted by the end of the week. These will be due Wed.
March 16th (SH6) and Monday March 21st (Case 3).
SL5 is not due until after Spring Break (Thursday March 17th).
Lab this Thursday will be a demonstration of a powered ankle exoskeleton to
give you a flavor of what is to come following spring break.
I am still grading the exam and hope to return in Monday March 14th. Thanks for
your patience.
Reading for Next Time:
Reading on Functions and Program Development: Palm Chapter 3.1-3.3, Palm Chapter
4.1 Reading on Debugging Palm Chapter 4.8
*Today’s Goals:
Review Euler’s Method (e.g. similar to SL5). Begin discussing functions- MATLAB built-
in and user-defined.
*I REMEMBER: turn on your diary to save your Command Window
>>diary LectureFeb28.m
*II. Euler’s Method for solving differential equations, revisited.
There are many differential equations that cannot be solved analytically (i.e. on pencil
and paper). For these we need a computer to march through time-
Explain Euler’s method on whiteboard.
As an example, derive simple pendulum equations of motion and make them into two
first order equations.
Step 1. deltaY/deltaT=somediffEquation
Step 2. y1 = y0 + deltay
Step 3. deltay =somediffEquation*dt
%Euler's Method Example:
%Integrating equations of motion describing pendulum mechanics.
%PROBLEM DESCRIPTION: Start pendulum at angle theta=pi/2 radians
%and angular velocity omega=0 rad/s. Find the time when the
%pendulum passes through 0 radians. Your code should be flexible
%enough to handle pendula of different lengths and masses as well
%as different initial conditions.
clear all