You are on page 1of 9

DEBER2

NOMBRE: WELLINGTON IVAN TOTOY GUILCA

1
2
%ejercicio1
S1=tf([0 1.5],[0 1])

S1 =

1.5

Static gain.

S2=tf([1/3 1],[0 1])

S2 =

0.3333 s + 1

Continuous-time transfer function.

S3=tf([0 1],[1 0])

S3 =

1
-
s

Continuous-time transfer function.

S4=tf([0 1],[1 1])

S4 =

1
-----
s + 1

Continuous-time transfer function.

S5=tf([0 1],[1/2 1])

S5 =

1
---------
0.5 s + 1

Continuous-time transfer function.

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=tf([0 0.057],[0 1])

S1 =

0.057

Static gain.

S2=tf([1/20 1],[0 1])

S2 =

0.05 s + 1

Continuous-time transfer function.

S3=tf([0 1],[1 1])

S3 =

4
-----
s + 1

Continuous-time transfer function.

S4=tf([0 1],[1/50 1])

S4 =

1
----------
0.02 s + 1

Continuous-time transfer function.

bode(S1,S2,S3,S4,w)
legend('s1','s2','s3','s4')

num=conv([0 0.06],[1/20 1])

num = 1×3
0 0.0030 0.0600

den=conv([1 1/7],[1/50 1])

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

Continuous-time transfer function.

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=tf([0 0.057142],[0 1])

S1 =

0.05714

Static gain.

S2=tf([1/20 1],[0 1])

S2 =

0.05 s + 1

Continuous-time transfer function.

S3=tf([0 1],[1 1])

S3 =

1
-----
s + 1

Continuous-time transfer function.

S4=tf([0 1],[1/7 1])

S4 =

1
------------
0.1429 s + 1

Continuous-time transfer function.

S5=tf([0 1],[1/50 1])

S5 =

8
----------
0.02 s + 1

Continuous-time transfer function.

bode(S1,S2,S3,S4,S5,W)
legend('S1','S2','S3','S4','S5')

You might also like