The MATLAB code involves procedure to find the feedback gain for linear quadratic regulator. The user is asked to input state space matrix and then using MATLAB function "LQR" the elements of feedback gain are found out.
zameer abbas (2020). LQR.m (https://www.mathworks.com/matlabcentral/fileexchange/47399-lqr-m), MATLAB Central File Exchange. Retrieved .