0% found this document useful (0 votes)
19 views

Lab 04 Control

The document contains several examples of defining continuous-time transfer functions using the tf function in MATLAB. Each example defines parameters like M, B, K and then defines the numerator and denominator polynomials to create transfer functions of the form: Numerator/Denominator The transfer functions are then used with impulse and step functions to analyze the systems' responses.

Uploaded by

Luis Rodriguez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Lab 04 Control

The document contains several examples of defining continuous-time transfer functions using the tf function in MATLAB. Each example defines parameters like M, B, K and then defines the numerator and denominator polynomials to create transfer functions of the form: Numerator/Denominator The transfer functions are then used with impulse and step functions to analyze the systems' responses.

Uploaded by

Luis Rodriguez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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