Professional Documents
Culture Documents
H=tf(1,[10 1]);
s=tf('s');
y= exp(-5*s);%tiempo muerto
gp=H*y;%funcin de transferencia del proceso
dt=0.05;
t=0:dt:100;
y=step(gp,t);%Respuesta al escaln
dy=diff(y)/dt;%Derivada
[m,p]=max(dy);%Punto de inflexin
yi=y(p);
ti=t(p);
L=ti-yi/m;%Retardo
Tau=(y(end)-yi)/m+ti-L;%Constante de tiempo
figure(1)
plot(t,y,'b',[0 L L+Tau t(end)],[0 0 y(end) y(end)],'k')%grafica para
lazo abierto
title('respuesta al escaln')
ylabel('Amplitud')
xlabel('tiempo (s)')
pidtool(gp)%grafica para lazo cerrado