Professional Documents
Culture Documents
Report 2nd Exam
Report 2nd Exam
Pendulum of a Length L
Recall the equation describing the motion of a pendulum of length L (with damping due to
friction and no other external forces):
d2 θ g dθ
+ sin(θ) + μ = 0,
dt2 L dt
where θ is the angle with respect to the downward vertical and μ is the daming coefficient -
representing the strength of the drag force.
State-space form
x1 = y
x2 = dy/dt = y′
dx1
= x2 (t)
dt
dx2 g
= − sin(x1 (t)) − μx2 (t)
dt L
where dx
dt
1
is the angle and dx
dt
1
is the angular velocity.
L = 1
miu = 0.02 % daming coefficient
t0 = 0; % initial time
tf = 15; % final time
L = 1
miu = 0.02 % daming coefficient
t0 = 0; % initial time
tf = 15; % final time
L = 1
miu = 0.02 % daming coefficient
t0 = 0; % initial time
tf = 15; % final time
L = 1
miu = 0.1 % daming coefficient
t0 = 0; % initial time
tf = 15; % final time
L = 1
miu = 0.5 % daming coefficient
t0 = 0; % initial time
tf = 15; % final time