You are on page 1of 1

7/11/19 6:04 PM C:\Users\STRANGE_EVIL\Downloads\Compressed\matlabfiles\pid.

m 1 of 1

clc
clear all
close all
s=tf('s');
g=tf([1],[1 3 3 1]);
step(g)
hold on
kc=8;
wc=sqrt(3);
pc=3.63;
kp=0.6*kc;
ti=0.5*pc;
td=0.125*pc;
for a=0.1:.1:.2
c=kp*(1+(1\(ti*s))+td*s\(a*td*s+1));
tf=feedback(g*c,1);
step(tf)
hold on
grid on
end

You might also like