Documentos de Académico
Documentos de Profesional
Documentos de Cultura
% Definiendo sistemas:
G1=tf(2,[1 1]);
G2=tf(5,[1 0]);
G3=tf(1,[2 4]);
H1=tf(1,1);
H2=tf(10,1);
H3=tf(4,[1 4]);
% analisis:
F=G1*G3*(H1+G2)/(1+G2*H2+G3*(H1+G2)*(G1+H3));
figure(1)
rlocus(F)
% sistemas es estable.
% SOLUCION PREGUNTA 2
F=tf(120,[5 10]);
t=0:0.01:20;
u=t;
y=lsim(F,u,t);
plot(t,y)
hold on
plot(t,u,'--r')
axis([0 20 0 max(y)*1.3])
xlabel('Eje X')
ylabel('Eje Y')
t=0:0.01:20;
u=5*[ones(1,1+length(t)-length(u))];
y=lsim(F,u,t);
figure(2)
plot(t,y)
hold on
plot(t,u,'--r')
axis([0 20 0 max(y)*1.3])
xlabel('Eje X')
ylabel('Eje Y')