www.pudn.com > fuzzy_control.zip > PID1.m, change:2012-06-21,size:297b


clear 
num=[1]; 
den=[10 1]; 
sysg1=tf(num,den,'iodelay',0.5) 
sysg=pade(sysg1,3) 
figure(1) 
step(sysg) 
K=25;Ti=1;Td=0.25; 
num2=[K*Td,K,K/Ti]; 
den2=[1,0]; 
sysc=tf(num2,den2) 
sys1=series(sysg,sysc); 
sys2=tf(1,1); 
sys=feedback(sys1,sys2) 
figure(2) 
step(sys) 
figure(3) 
rlocus(sys)