MPC Unconstrained MPC with a segway demo. The mpcgain function can be used to control any linear system. Fun exercises: Convert to constrained MPC, make quadratic solver