PROJECT 4: Matlab Programming
Pendulum
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:
a) the arm length
b)the weight at the end of the arm
c)initial values of theta (from -180 to +180 degrees allowed)
d)equation type (linear or non-linear)
e)initial/final conditions on t
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
Use initial condition t=0
Use final condition sufficiently long to show
differences in characteristics of each plot curve
Submit standard report including:
-
source codes
-
input files
-
3 graphs
- 1. theta vs t for the 2 solvers & exact linear solution, theta0 = 180
- 2. theta vs t for the 2 solvers & exact linear solution, theta0 = 45
- 3. theta vs t for the 2 solvers & exact linear solution, theta0 = 10
Due: Mar 2, 10AM