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

Lim, Margret L. Terminal 22 ECE131L-B11 Group 7 Module 2: Systems Generation, Retrieval and Interconnection 1

1. This document contains examples of generating and manipulating transfer functions in MATLAB. It shows how to create transfer functions from numerator/denominator, zero/pole/gain, state-space, and frequency response data. It also demonstrates connecting transfer functions in series, parallel, and with feedback. 2. The examples illustrate operations like obtaining the zero/pole/gain or state-space representations from a given transfer function. It also shows creating more complex transfer functions by connecting simpler ones in various configurations using series, parallel and feedback connections. 3. The final example builds a complex multi-input/multi-output system by connecting multiple transfer functions in series, parallel and with feedback to obtain an overall transfer function relating all the
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Lim, Margret L. Terminal 22 ECE131L-B11 Group 7 Module 2: Systems Generation, Retrieval and Interconnection 1

1. This document contains examples of generating and manipulating transfer functions in MATLAB. It shows how to create transfer functions from numerator/denominator, zero/pole/gain, state-space, and frequency response data. It also demonstrates connecting transfer functions in series, parallel, and with feedback. 2. The examples illustrate operations like obtaining the zero/pole/gain or state-space representations from a given transfer function. It also shows creating more complex transfer functions by connecting simpler ones in various configurations using series, parallel and feedback connections. 3. The final example builds a complex multi-input/multi-output system by connecting multiple transfer functions in series, parallel and with feedback to obtain an overall transfer function relating all the
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Lim, Margret L.

Terminal 22
ECE131L-B11 Group 7

MODULE 2: SYSTEMS GENERATION, RETRIEVAL AND


INTERCONNECTION

1.
A.
>>NUM = [5 0 8];
>>DEN = [1 5 6];
>>sysa = tf(NUM, DEN)
Transfer function:
5 s^2 + 8
----------------
s^2 + 5 s + 6

B.
>>z = [-4 1];
>>p = [3 -7];
>>k = [15];
>>sysb = zpk(z, p, k)
Zero/pole/gain:
15 (s+4) (s-1)
--------------
(s-3) (s+7)

C.
>>A = [0 1; -5 -2];
>>B = [0; 3];
>>C = [1 0];
>>D = [0];
>>sysc = ss(A, B, C, D)

a=
x1 x2
x1 0 1
x2 -5 -2

b=
u1
x1 0
x2 3

c=
x1 x2
y1 1 0
d=
u1
y1 0

Continuous-time model.

D.
>> R = [-0.91+0.7i -0.54+0.43i -0.43+0.65i];
>> F = [1000*2*pi 2000*2*pi 3000*2*pi];
>> sysd = frd(R,F)

Frequency (rad/s) Response


-------------------- ----------------------
6283.185307 -0.9100 + 0.70i
12566.370614 -0.5400 + 0.43i
18849.555922 -0.43 + 0.6500i

Continuous-time frequency response.

2.
>> NUM = [5 -8 3];
>> DEN = [2 -4 -4];
>> H = tf(NUM, DEN)

Transfer function:
5 s^2 - 8 s + 3
---------------
2 s^2 - 4 s - 4

A.
>> [NUM, DEN] = tfdata(H, 'v')
NUM =
5 -8 3
DEN =
2 -4 -4

B.
>> [z, p, k] = zpkdata(H, 'v')
z=
1.0000
0.6000
p=
2.7321
-0.7321
k=
2.5000

C.
>> [A, B, C, D] = ssdata(H)
A=
2 1
2 0
B=
2
0
C=
0.5000 1.6250
D=
2.5000

D.
>> [R, F] = frdata(H)

??Error using ==> lti.frdata


FRDATA is applicable to FRD models only.

3.
A.
>> G1 = tf([1 4 3], [1 2 5 10]);
>> G2 = tf([1 5 4], [1 4 8 0]);
>> G3 = tf([1 3 3], [1 0 5 0 1]);
>> G4 = tf([1 6 0], [3 3 4]);
>> GS = series(G1, G2);
>> GP = parallel(+GS, +G3);
>> GF = feedback(GP, G4, -1)

Transfer function:
6 s^10 + 60 s^9 + 284 s^8 + 903 s^7 + 2192 s^6 + 3965 s^5 + 5283 s^4 + 5002 s^3 + 3117 s^2 + 1120 s +
48
-------------------------------------------------------------------------------------------------------------------------------
3 s^12 + 21 s^11 + 102 s^10 + 360 s^9 + 1072 s^8 + 1257 s^7 + 4602 s^6 + 7061 s^5 + 7561 s^4 + 59373
s^3 + 2198 s^2 + 392 s

B.
>> G1 = tf([3 0 0], [2 0 4]);
>> G2 = tf([1], [1 0 4]);
>> G3 = tf([1 0 0], [2 -5 1]);
>> G4 = tf([1], [3 4]);
>> GF1 = feedback(G1, G2, -1);
>> GS = series(GF1, G3);
>> GF2 = feedback(GS, G4, +1)

Transfer function:
9 s^7 + 12 s^6 + 36 s^5 + 48 s^4
------------------------------------------------------------------
12 s^7 - 17 s^6 + 56 s^5 - 109 s^4 - 159 s^3 - 52 s^2 - 272 s + 64

C.
>> A = [0 1; -5 -2]; B = [0;3]; C = [1 0]; D = [0];
>> E = ss(A, B, C, D);
>> [b, a] = tfdata(E, 'v');
>> b = b*4;
>> G1 = tf(b, a);
>> G2 = tf(zpk([-1 -1], [0 -2 -3], [10]));
>> G3 = tf([1 0 0], [1 4 4]);
>> G4 = tf(zpk([-2], [0 -4], [2]));
>> G5 = tf([1], [1 0]);
>> G6 = tf([1], [1 0]);
>> GP = parallel(+G1, +G2);
>> GF1 = feedback(GP, G3, -1);
>> GS1 = series(G4, GF1);
>> GF2 = feedback(GS1, G5, -1);
>> GS2 = series(GF2, G6)

Transfer function:
20 s^8 + 224 s^7 + 1184 s^6 + 3712 s^5 + 7076 s^4 + 7768 s^3 + 4272 s^2 + 800 s
------------------------------------------------------------------------------------------------------------------------------
s^11 + 25 s^10 + 189 s^9 + 749 s^8 + 1914 s^7 + 3318 s^6 + 5104 s^5 + 7556 s^4 + 7768 s^3 + 4272 s^2
+ 800 s

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy