Skip to content

Commit 811d0b1

Browse files
authored
Update zoh.md
Fix #932
1 parent 2cb622d commit 811d0b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/examples/zoh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ P = tf(0.1, [1, 0.1, 0.1])
1414

1515
Next, we discretize this system using the standard [`c2d`](@ref) function, which uses ZoH sampling by default. We compare the frequency response of the discretized system with the frequency response of the original continuous-time system multiplied by the transfer function of the ZoH operator [^CCS]
1616
```math
17-
Z(s) = \dfrac{1 - e^{-T_s s}}{s}
17+
Z(s) = \dfrac{1 - e^{-T_s s}}{T_s s}
1818
```
1919
[^CCS]: Åström, K. J., & Wittenmark, B. (1997). Computer-Controlled Systems: Theory and Design.
2020

2121
```@example zoh
2222
Ts = 1 # Sample interval
23-
Z = (1 - delay(Ts))/s # The transfer function of the ZoH operator
23+
Z = (1 - delay(Ts))/(Ts*s) # The transfer function of the ZoH operator
2424
Pd = c2d(P, Ts) # Discrete-time system obtained by ZoH sampling
2525
Pz = P*Z # The continuous-time version of the discrete-time system
2626

0 commit comments

Comments
 (0)