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
Copy file name to clipboardExpand all lines: docs/src/lib/timefreqresponse.md
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,13 @@
1
+
# Time and Frequency response analysis
1
2
```@index
2
3
Pages = ["timefreqresponse.md"]
3
4
```
4
5
5
-
# Time and Frequency response
6
6
7
-
Frequency responses are calculated using [`freqresp`](@ref), [`bode`](@ref) and [`nyquist`](@ref).
7
+
8
+
## Frequency response
9
+
10
+
Frequency responses are calculated using [`freqresp`](@ref), [`bode`](@ref), [`sigma`](@ref) and [`nyquist`](@ref). Frequency-response plots are obtained using [`bodeplot`](@ref), [`sigmaplot`](@ref), [`nyquistplot`](@ref), [`marginplot`](@ref) and [`nicholsplot`](@ref).
8
11
9
12
Any [`TransferFunction`](@ref) can be evaluated at a point using
10
13
`F(s)`, `F(omega, true)`, `F(z, false)`
@@ -13,10 +16,31 @@ Any [`TransferFunction`](@ref) can be evaluated at a point using
13
16
-`F(omega,true)` evaluates the discrete-time transfer function `F` at `exp(i*Ts*omega)`
14
17
-`F(z,false)` evaluates the discrete-time transfer function `F` at `z`
15
18
19
+
A video demonstrating frequency-response analysis in ControlSystems.jl is available below.
Simulation with arbitrary inputs is primarily handled by the function [`lsim`](@ref), with [`step`](@ref) and [`impulse`](@ref) serving as convenience functions to simulate responses to particular inputs.
17
28
29
+
The function [`lsim`](@ref) can take an input vector `u` containing a sampled input trajectory, or an input function taking the state and time as arguments, `u(x,t)`. This function can be used to easily simulate, e.g., ramp responses or saturated state-feedback control etc. See the docstring of [`lsim`](@ref) for more details.
30
+
18
31
For more extensive nonlinear simulation capabilities, see the notes on ModelingToolkit and DifferentialEquations under [The wider Julia ecosystem for control](@ref).
19
32
33
+
#### Example:
34
+
The following simulates a step response of a second-order system and plots the result.
35
+
```@example TIMERESP
36
+
using ControlSystemsBase, Plots
37
+
G = tf(1, [1, 1, 1])
38
+
res = step(G, 20) # Simulate 20 seconds step response
0 commit comments