LQR Inverted Pendulum Control Simulation
LQR inverted pendulum control simulation based on the standard state-space equation x=Ax+Bu, y=Cx+Du. The qiuk.m file utilizes MATLAB's lqr function to compute the optimal control gain matrix K, which is then implemented in the fangzhen.m simulation file (with K pre-loaded) to generate stabilization curves for the inverted pendulum system.