You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We see that the translation of the discrete-time system to continuous time using the standard inverse ZoH sampling (``d2c(Pd)``) is not accurate for frequencies close to and above the Nyquist frequency. The translation using exact method (``d2c_exact(Pd)``) matches the frequency response of the discrete-time system exactly over the entire frequency axis.
84
+
We see that the translation of the discrete-time system to continuous time using the standard inverse ZoH sampling (`d2c(Pd)`) is not accurate for frequencies close to and above the Nyquist frequency. The translation using exact method (`d2c_exact(Pd)`) matches the frequency response of the discrete-time system exactly over the entire frequency axis.
85
85
86
86
## Time-domain simulation
87
87
@@ -134,19 +134,17 @@ If we form the closed-loop system from an input disturbance to the output
134
134
```math
135
135
PS = \dfrac{P(s)}{1 + P(s)C(s)}
136
136
```
137
-
we can simulate the response to a continuous-time input disturbance that contains frequencies higher than the Nyquist frequency of the discrete-time system:
138
-
```@example zoh
139
-
PS = feedback(P, Cc) # Use the continuous-time plant and continuous translation of the controller
140
-
fd = 10 # Frequency of input disturbance (Hz) (Nyquist frequency is 0.5Hz)
If we had tried doing this with the discretized plant, we would have gotten a very poor result
137
+
we can simulate the response to a continuous-time input disturbance that contains frequencies higher than the Nyquist frequency of the discrete-time system, we do this below. We also try doing this with the discretized plant, which yields a very poor result
145
138
```@example zoh
139
+
PS = feedback(P, Cc) # Use the continuous-time plant and continuous translation of the controller
146
140
PSd = feedback(Pd, C) # Use the discretized plant and discrete controller
The output in this case is zero before the step in the disturbance at ``t = 5``, since the frequency of the input disturbance is at an integer multiple of the Nyquist frequency.
150
-
147
+
The continuous-time analysis eventually settles at a periodic output that matches the amplitude predicted by the continuous-time frequency response. However, the discrete-time simulation yields, as expected, a very poor result.
151
148
152
-
## Summary
149
+
### Caveats
150
+
The exact output of the system that was translated from discrete to continuous time is not going to be accurate, so transient properties of the hybrid system cannot be accurately assessed using this kind of analysis.
0 commit comments