Control Systems Lecture: DC motor state-space modeling and ...
The code line 22 is used to define the state-space model. The MATLAB function ss() takes as input parameters the system matrices, and it produces the state-space model. The code lines 24-29 are used to define the discretization constant, final simulation time, and the vector ("discretization_time ") containing the discretization time steps.