This video explains how to implement the lead or lag compensator using MATLAB and Simulink. Hope it helps you Note that the compensator is done using another approach, which is also correct. This is a way from the ways
No download links available.