Documentos de Académico
Documentos de Profesional
Documentos de Cultura
OBJETIVOS:
PROCEDIMIENTO:
plot(xa,ya)
title('ln(A - y(t)) vs t')
axis([0 0.06 -2 1.5])
%**************************************
%calculando la pendiente con 0.2<t<0.05
%********************************
xi=(0.02:0.01: 0.05);
yi=interp1(xa',ya',xi,'linear');
figure
plot(xa,ya,'k.')
hold
plot(xi,yi,'m')
% ********************************
% Calculando la pendiente m = p1
% ********************************
p1=(yi(1)-yi(4))/(0.05-0.02455); % 85.5480
% ********************************************
% Calculando B: B(t) = (y(t) - A) / exp(-p1*t)
% ********************************************
B = (y3 - A)./exp(-p1*t3);
figure
plot(t3,B,'r.')
hold
plot([0 0.1],[median(B(6:9)) median(B(6:9))],'b:')
title('B(t)=(y(t)-A)/e^{-p_1t}')
B=median(B(6:9)); % -11.0613
% ***********************
% Calculando C: C=-(A+B)
% ***********************
C=-(A+B); % 6.7613
% ********************************
% Calculando p2: p2 = (-B/C) * p1
% ********************************
p2=-(B/C)*p1; % 139.9542
% ********************************
% Graficando: ln(y2)=ln[y - (A+Be^-p1t)]=ln[Ce^-p2t]
% ********************************
y4=log(y3 - (A+B*exp(-p1.*t3)));
figure
plot(t3(1:5),y4(1:5),'k.')
hold
xi=(0.00:0.01: 0.03); yi=interp1(t3(1:5)',y4(1:5)',xi,'linear');
plot(xi,yi)
title('ln[y - (A+Be^-p1t)]')
% ****************************
% comprobando el valor de p2
% ****************************
%a=yi(1);
%b=yi(4);
%p2=(a-b)/(t3(2)-t3(4)); % 5.68
% *************************
% Calculo de la ganacia: K
K=A*p1*p2; % 5.1483e+004
% **************************************
% Funcin de transferencia experimental:
% **************************************
Gexp=tf(K,conv([1 p1],[1 p2]));
Gexp=zpk(Gexp)
t4=0:0.001:0.09;
y3exp=step(Gexp,t4);
figure
plot(t4,y3exp,'m:')
hold
plot(t3,y3,'k')
plot([0 .1],[1 1],'k:')
axis([0 0.1 0 4.5])
legend('G_{ident}','G_{data}',4)
xlabel('t (seg)')
ylabel('y(t)')
SIMULACION EXPERIMENTAL: