MATLAB (8) Posted on 2019-11-27 In Etc. Lead-Lag Compensation1234>> num=[4];>> den=[1 0.5 0];>> v=[-5 5 -5 5];>> axis(v); 12>> rlocus(num,den);>> axis(v); 123>> rlocus(num,den);>> grid on>> hold on 123>> numc=[25.04 5.008];>> denc=[1 5.03247 0.0626 0];>> rlocus(numc,denc); 1234567>> den=[1 0.5 4];>> denc=[1 5.0327 25.1026 5.008];>> t=0:0.1:10;>> step(num,den,t);>> hold on>> step(numc,denc,t);>> grid on 12345678>> step(num,den,t);>> den=[1 0.5 4 0];>> step(num,den,t);>> hold on>> denc=[1,5.0327 25.1026 5.008 0];>> step(numc,denc,t);>> plot(t,t,'k');>> grid on