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:
- the arm length
- the weight at the end of the arm
- initial values of theta (from -180 to +180 degrees allowed)
- 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
-
source codes
-
input files
-
plots of theta vs t for the 2 solvers
and 3 initial angles
all on one plot
Due: 10AM