Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

a) Aa

M=20;
B=4;
K=5;
num=[1 0];
den=[M B K];
G=tf(num,den)

G=
s
----------------
20 s^2 + 4 s + 5

Continuous-time transfer function.

>> impulse(G)
b) Ooo

M=20;

B=4;

K=5;

num=[1 0];

den=[M B K];

G=tf(num,den)

G=

----------------

20 s^2 + 4 s + 5

Continuous-time transfer function.

>> step(G)
c) Bbb

>> M=20;
B=4;
K=5;
num=[1 0 0];
den=[M B K];
G=tf(num,den)

G=
s^2
----------------
20 s^2 + 4 s + 5

Continuous-time transfer function.

>> impulse(G)
d) Hh

M=20;
B=4;
K=5;
num=[1 0 0];
den=[M B K];
G=tf(num,den)

G=

s^2
----------------
20 s^2 + 4 s + 5

Continuous-time transfer function.

>> step(G)
1. L
2. K
a) J
>> M1=20;
B=4;
K1=5;
M2=5;
K2=2;
num=[K2];
den=[(M1*M2) (M2*B) (M2*(K1+K2)+M1*K2) (B*K2) (K1*K2)];
>> G=tf(num,den)

G=

2
------------------------------------
100 s^4 + 20 s^3 + 75 s^2 + 8 s + 10

Continuous-time transfer function.

>> impulse(G)
b) K

>> M1=20;
B=4;
K1=5;
M2=5;
K2=2;
num=[K2];
den=[(M1*M2) (M2*B) (M2*(K1+K2)+M1*K2) (B*K2) (K1*K2)];
G=tf(num,den)

G=

2
------------------------------------
100 s^4 + 20 s^3 + 75 s^2 + 8 s + 10

Continuous-time transfer function.

>> step(G)
c) K
>> M1=20;
B=4;
K1=5;
M2=5;
K2=2;
>> num=[M2 0 K2];
>> den=[(M1*M2) (M2*B) (M2*(K1+K2)+M1*K2) (B*K2) (K1+K2)];
>> G=tf(num,den)

G=

5 s^2 + 2
-----------------------------------
100 s^4 + 20 s^3 + 75 s^2 + 8 s + 7

Continuous-time transfer function.

>> impulse(G)
d) J

>> M1=20;
B=4;
K1=5;
M2=5;
K2=2;
num=[M2 0 K2];
den=[(M1*M2) (M2*B) (M2*(K1+K2)+M1*K2) (B*K2) (K1+K2)];
G=tf(num,den)

G=

5 s^2 + 2
-----------------------------------
100 s^4 + 20 s^3 + 75 s^2 + 8 s + 7

Continuous-time transfer function.

>> step(G)

You might also like