
−2
0
2
4
t (s)
0123456789101112
0123456789101112
x
1,A
(n), n = 0, 1, 2, ..., 50
x
1
(t), 0 ≤ t ≤2π
x
1
−2
0
2
4
x
2
t (s)
x
2, A
(n), n = 0, 1, 2, ..., 50
x
2
(t), 0 ≤ t ≤2π
FIGURE 3.19 Continuous-time solution and approximate solution using explicit Euler integration (T ¼0.25 s)
to second-order system
€
x þ v
2
x ¼ 0, v ¼1 rad=s.
−2
0
2
4
t (s)
t (s)
0123456789101112
0123456789101112
x
1,A
(n), n = 0, 1, 2, ..., 50
x
1
(t), 0 ≤ t ≤2π
x
1
−2
0
2
4
x
2
x
2,A
(n), n = 0, 1, 2, ..., 50
x
2
(t), 0 ≤ t ≤2π
FIGURE 3.20 Continuous-time solution and approximate solution using improved Euler integration
(T ¼0.25 s) to second-order system €x þ v
2
x ¼ 0, v ¼ 1 rad=s.
126 Simulation of Dynamic Systems with MATLAB
®