Abstract:This article introduced computer aided design of lag-lead compensator based on root locus,the function laglead was given,the required lag-lead compensator could be obtained by calling function laglead.The design example was also given at last,it detailedl