This is the MATLAB and Simulink code used for my UAA senior elective class "Advanced Linear Systems". It includes homework and minilabs where we go through the process of programming a self balanceing robot that consists of an Arduino on a LEGO robotics servo.