Skip to content

Commit 90f82a7

Browse files
committed
cleaned up one example
1 parent 5d68fd4 commit 90f82a7

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

example/delayed_lti_system.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ s = tf("s")
77
P = delay(0.2) * ss(1/(s+1))
88

99
K = 3; Ti = 0.3;
10-
C = DelayLtiSystem(ss(K*(1 + 1/s)))
10+
C = ss(K*(1 + 1/s))
1111

1212
ω = exp10.(LinRange(-2,2,500))
1313

14-
L_fr = freqresp(C*P, ω)[:]
15-
plot(real(L_fr), imag(L_fr), xlim=[-2,1], ylim=[-2,2], title="Nyquist curve")
14+
nyquistplot(P*C, ω, xlims=(-2,1), ylims=(-2,2), gaincircles=false)
1615

1716
G_yd = feedback(P, C)
18-
plot(ω, abs.(freqresp(G_yd, ω)[:]), xscale=:log, yscale=:log,
19-
title="Transfer function from load disturbances to output.")
17+
bodeplot(G_yd, ω, plotphase=false, title="Transfer function from load disturbances to output.")

0 commit comments

Comments
 (0)