Skip to content

Instantly share code, notes, and snippets.

@baggepinnen
Last active August 27, 2017 20:00
Show Gist options
  • Save baggepinnen/c5694f017b4a3d409f260435a6cce601 to your computer and use it in GitHub Desktop.
Save baggepinnen/c5694f017b4a3d409f260435a6cce601 to your computer and use it in GitHub Desktop.
using ControlSystems
G = tf(1,[1,1])
bodeplot(G)
nyquistplot(G)
nicholsplot(G, linewidth=5)
lsimplot(G, 5+0.1randn(100), 0:0.1:9.9)
pzmap(G)
gangoffourplot(G,G)
G = tf(1,[1,1])
mag,phase,omega = vec.(bode(G))
plot(omega, mag, seriestype=:bodemag, layout=(2,1), subplot=1)
plot!(omega, phase, seriestype=:bodephase, subplot=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment