Professional Documents
Culture Documents
Previo Sistemas Joachin
Previo Sistemas Joachin
clc
m=2;
b=1;
k=2.5;
n=1;
d=[m b k];
G2=tf(n,d);
F=7;
step(F*G2),xlabel('Tiempo [s]'),ylabel('Desplazamiento [m]'),grid
clear
clc
n1=[12.14];
d1=[1,23,64,82,40];
G1=tf(n1,d1);
pole(G1)
n2=[12.14];
d2=[1,22,42,40];
G2=tf(n2,d2);
pole(G2)
n3=[0.607];
d3=[1,2,2];
G3=tf(n3,d3);
pole(G3)
[y1,x1,t1]=step(G1);
[y2,x2,t2]=step(G2);
[y3,x3,t3]=step(G3);
plot(x1,y1,'b',x2,y2,'r',x3,y3,'g')
clear
clc
n1=[2.33];
d1=[1,17.3,75.15,21];
G1=tf(n1,d1);
pole(G1)
n2=[3.5];
d2=[1,19,94,120];
G2=tf(n2,d2);
pole(G2)
n3=[14];
d3=[1,9,18];
G3=tf(n3,d3);
pole(G3)
[y1,t1]=step(G1);
[y2,t2]=step(G2);
[y3,t3]=step(G3);
plot(t1,y1,'b',t2,y2,'r',t3,y3,'g')