![LQR equation](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1747511/image.png)
- State-Space block: to represent the PMDC motor model (with Matrices A,B,C,D)
- Gain block: to represent the LQR gain (K) , this is computed previously
- Sum block: to compute the control input
- Scope block: to visualize the output
- Step block: for the input voltage