Professional Documents
Culture Documents
1
2
%ejercicio1
S1=tf([0 1.5],[0 1])
S1 =
1.5
Static gain.
S2 =
0.3333 s + 1
S3 =
1
-
s
S4 =
1
-----
s + 1
S5 =
1
---------
0.5 s + 1
bode(S1,S2,S3,S4,S5)
legend('S1','S2','S3','S4','S5')
3
%ejercicio2
w=10^1:0.01:10^4
w = 1×999001
104 ×
0.0010 0.0010 0.0010 0.0010 0.0010 0.0010 0.0010 0.0010
S1 =
0.057
Static gain.
S2 =
0.05 s + 1
S3 =
4
-----
s + 1
S4 =
1
----------
0.02 s + 1
bode(S1,S2,S3,S4,w)
legend('s1','s2','s3','s4')
num = 1×3
0 0.0030 0.0600
den = 1×3
0.0200 1.0029 0.1429
G1=tf(num,den)
G1 =
5
0.003 s + 0.06
---------------------------
0.02 s^2 + 1.003 s + 0.1429
figure(1)
bode(G1)
wn=5
wn = 5
p1=pole(G1)
p1 = 2×1
-50.0000
-0.1429
zeta=1/5
zeta = 0.2000
figure(2)
step(G1)
6
figure(3)
pzmap(G1)
7
wr=wn*sqrt(1-2*zeta^2)
wr = 4.7958
M=1/(2*zeta*sqrt(1-zeta^2))
M = 2.5516
Mr=20*log10(M)
Mr = 8.1361
%ejercicio3
W=10^-1:0.01:10^4
W = 1×999991
104 ×
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
S1 =
0.05714
Static gain.
S2 =
0.05 s + 1
S3 =
1
-----
s + 1
S4 =
1
------------
0.1429 s + 1
S5 =
8
----------
0.02 s + 1
bode(S1,S2,S3,S4,S5,W)
legend('S1','S2','S3','S4','S5')