PROJECT 4: Matlab Programming

Problem Statement

Solve the pendulum problem for
a) linear case
b) non-linear case
using both ode23 and ode45
    Use an input file which allows you to change values of:
  1. the arm length
  2. the weight at the end of the arm
  3. initial values of theta (from -180 to +180 degrees allowed)
  4. equation type (linear or non-linear)
Neglect the weight of the arm and friction in the support bearing.
Test you program for the following case:
W = 8 lb
arm length = 3 feet
Use initial angles of:
a) -180
b) -45
c) -10

Submit standard report including

  1. source codes
  2. input files
  3. plots of theta vs t for the 2 solvers
    and 3 initial angles
    all on one plot

     
Due:  10AM