Simulation Realization of Sliding Mode Control for Second Order System with M Language

Aiming at a class of two order systems with single input and non minimum phase, a sliding mode control method is used to design the controller. And the problem of using Matlab software M language programming is studied. Finally, the simulation results show that the design of the controller and the programming is reasonable.