MATLAB: Bode stability demonstration in Simulink


I'm trying to create a demonstration of the Bode stability "thought experiment" using Simulink. What I'd like to do is have an input to an open-loop feedback control system be a sine wave, then some time later have that input changed to a constant value and the loop closed.
Any thoughts on how to do this?

Best Answer

  • Have you thought about using something like a switch? Have a look at this demo 'sldemo_zeroxing' that shows input changing as a function of simulation time. You could use a similar switch to make the open loop/closed loop connections.
    Another approach could be to use an enabled subsystem:
  • Related Question