Skip to content

Commit 7374520

Browse files
committed
tidy up
1 parent a59e2a2 commit 7374520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/examples/example.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ controller = observer_controller(P, L, K)
9999
T_cl = feedback(P * controller)
100100
101101
r(x,t) = [1.5(t>=2.5); 0] # Form control law (r is a function of t and x), change reference to 1.5 at t≧2.5
102-
t = 0:Ts:5 # Time vector
103-
x0 = [1, 0, 0, 0] # Initial condition
102+
t = 0:Ts:5 # Time vector
103+
x0 = [1.0, 0, 0, 0] # Initial condition (plant state followed by controller state)
104104
res = lsim(T_cl, r, t; x0)
105105
plot(res, lab=["Position" "Velocity"], layout=1, sp=1)
106106
```

0 commit comments

Comments
 (0)