MATLAB Impedance Control for a 2-Link Robot Arm - User-interactive 2-link planar arm with a compliant controller and gravity compensation. The user can click and drag to move the end-effector's target position. Hit a keyboard key to change to disturbance-mode. This mode applies a disturbance force to the end-effector, allowing for real-time testing of the controller's response to external forces. The system provides an intuitive way to visualize impedance control and its interaction with the environment.