Local Media8707917384022059624

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

Mindanao State University

MSU-Main, Marawi City


Department of Electrical Engineering

EEE 160.1 Laboratory Experiment No.1

Submitted to:
Professor Johaimen M. Omar

Submitted by:
Mohammad Ramzy B. Macapodi

May 10, 2023


1.1 OBJECTIVES

To learn to use MATLAB to (1) generate polynomials, (2) manipulate polynomials,


(3) generate transfer functions, (4) manipulate transfer functions, and (5) perform
partial-fraction expansions.

1.2 MINIMUM REQUIRED SOFTWARE PACKAGES


MATLAB

1.3 PRELAB

1. Calculate the following by hand or with calculator:


a. The roots of P1=s6 +7 s 5+2 s 4+ 9 s 3 +10 s 2+12 s+15

By using MATLAB/Calculator, the roots are:

b. The roots of P2=s6 + 9 s 5+ 8 s 4 +9 s3 +12 s 2+ 15 s+ 20


By using MATLAB/Calculator, the roots are:

S1: -8.1330 + 0.0000i


S2: 0.6996 + 0.9880i
S3: 0.6996 – 0.9880i
S4: -1.2183 + 0.0000i
S5: -0.5240 + 1.0501i
S6: -0.5240 – 1.0501i

c. P3=P1 + P2 ; P4=P 1−P2; P5=P1 P2

Solution:

P3 = P1 + P2
P3 = (s6 + 7s5 + 2s4 + 9s3 + 10s2 + 12s + 15) + (s6 + 9s5 + 8s4 + 9s3 + 12s2 +
15s + 20)
P3 = 2s6 + 16s5 + 10s4 + 18s3 + 22s2 + 27s + 35
P4 = P1 – P2
P4 = (s6 + 7s5 + 2s4 + 9s3 + 10s2 + 12s + 15) - (s6 + 9s5 + 8s4 + 9s3 + 12s2 +
15s + 20)
P4 = -2s5 – 6s4 – 2s2 – 3s – 5

P5 = P1P2
P5 = (s6 + 7s5 + 2s4 + 9s3 + 10s2 + 12s + 15) (s6 + 9s5 + 8s4 + 9s3 + 12s2 +
15s + 20)
P5 = s12 +10s11 + 73s10 + 92s9 + 182s8 + 291s7 + 433s6 + 599s5 + 523s4 +
609s3 + 560s2 + 465s + 300

2. Calculate by hand or with a calculator the polynomial.


P6 = (s + 7)(s + 8)(s + 3)(s + 5)(s + 9)(s + 10)
P6 = s6 + 42s5 + 718s4 + 6372s3 + 30817s2 + 76530s + 75600

3. Calculate by hand or with calculator the following transfer functions:


20(s+ 2)(s+ 3)(s+ 6)(s +8)
a. G1(s) =
s (s+7)( s+ 9)( s+ 10)(s+ 15)
6 3 2
20 s + 380 s + 2480 s +6480 s+5760
G1(s) = 5 4 3 2
s + 41 s +613 s +397 s +3450 s
4 3 2
s +17 s + 99 s +223 s+140
b. G2(s) = 5 4 3 2
s + 32 s +363 s +2092 s +5052 s+ 4320
G2(s) =
(s+1)(s+ 4)(s+5)(s+7)
( s+16.78)(s+2.04−0.52i)(s +2.04+ 0.52i)(s +5.55−5.16 i)(s +5.55+5.16 i)

c. G3(s) = G1(s) + G2(s)


20(s+ 2)(s+ 3)(s+ 6)(s +8) ( s +1 )( s+ 4 )( s+5 ) (s +7)
G3(s) = + 5
s (s+7)( s+ 9)( s+ 10)(s+ 15) s + 32 s +363 s 3+ 2092 s 2+5052 s + 4320
4

G3(s) =
2 2 2
21(s +16.76)( s+7.999)(s+6.003)(s +6.079 s+9.499)(s +3.033 s+2.607)(s +11.46 s +59.47)
s ( s+7 )( s+ 9 ) ( s+ 10 ) ( s+15)(s+16.79)(s2 +4.097 s+ 4.468)(s2 +11.12 s+57.6)

G4(s) = G1(s) – G2(s)


20(s+ 2)(s+3)(s+ 6)(s +8) (s +1)(s+ 4)(s+ 5)(s+ 7)
G4(s) = − 5
s (s+7)( s+3)( s+10)(s+15) s +32 s +363 s 3 +2092 s 2+5052 s+ 4320
4

G4(s) =
2 2
19(s+16.81)(s +8.001)(s +5.997)(s+3.252)(s+1.496)(s + 4.335 s+ 6.018)(s + 10.74 s +55.47
s(s +7)(s +9)( s+10)(s+15)(s+16.79)(s2 + 4.097 s +4.468)( s2 +11.12 s+57.6)

G5(s) = G1(s) x G2(s)


G5(s) = (
20(s+ 2)(s+3)(s+ 6)(s +8) ( s+1 ) ( s +4 ) ( s +5 ) ( s +7 )
¿( 5 )
s (s+7)( s+3)( s+10)(s+15) s + 32 s +363 s 3+ 2092 s2 +5052 s +4320
4

G5(s) =
20(s+ 2)(s+ 3)(s+ 4)(s+ 5)(s+ 6)(s +7)(s+8)(s+1)
s (s+7)(s+ 9)(s+ 10)(s+ 15)(s+ 16.79)(s 2+ 4.079 s +4.468)(s 2+11.12 s+57.6)
4. Calculate by hand or with calculator the partial-fraction expression of the
following transfer functions:
5(s+2)
a. G6(s) =
s (s2 +8 s +15)
5(s+2)
G6(s) =
s (s+5)( s+3)
5(s+2)
b. G7(s) =
s (s2 +6 s+9)
5(s+2)
G7(s) =
s (s+3)( s+3)
5(s+2)
c. G8(s) =
s (s2 +6 s+34)
5 (s +2)
G8(s) =
s (s+3−5i)( s+3+5 i)
1.4 LAB
1. Use MATLAB to find P3 , P 4 and P5 in prelab 1.

2. Use only one MATLAB command to find P6 in prelab 2.


3. Use only two MATLAB command to find G1 (s) in prelab 3a presented as a
polynomial divided by a polynomial.

4. Use only two MATLAB command to find G2 (s) expressed as factors in the numerator
divided by factors in the denominator.
5. Using various combinations of G1 ( s ) and G2 (s), find G3 (s), G4 (s) , and G5 (s). Various
combinations imply mixing and matching G1 (s) and G2 (s) expressed as factors and
polynomials. For example, in find G3 (s), G1 ( s ) can be expressed in factored form and
G2 (s) can be expressed in polynomial form. Another combination is G1 ( s ) and G2 (s) both
expressed as polynomials. Still another combination is G1 ( s ) and G2 (s) both expressed in
factored form.

a. Various combinations for calculation of G3 (s):

Calculation of G3 with G1 expressed in factor form and G2 expressed in factor form.


Calculation of G3 with G1 expressed in polynomial form and G2 expressed in factor

form.

Calculation of G3 with both G1 and G2 expressed in polynomial form.


Calculation of G3 with G1 expressed in factor form and G2 expressed in polynomial
form.

b. Various combinations for calculation of G4 (s) :

Calculation of G4 with both G1 and G2 expressed in factor form


Calculation of G4 with both G1 and G2 expressed in polynomial form

Calculation of G4 with G1 expressed in factor form and G2 expressed in polynomial


form.

Calculation of G4 with G1 expressed in polynomial form and G2 expressed in factor


form.
c. Various combinations for calculation of G5 ( s ) :

Calculation of G5 with G1 and G2 expressed in factor form.

Calculation of G5 with both G1 and G2 expressed in polynomial form.


Calculation of G5 with G1 expressed in factor form and G expressed in polynomial form.

Calculation of G5 with G1 expressed in polynomial form and G2 expressed in factor


form.

6. Use MATLAB to evaluate the partial fraction expansions shown in Prelab 4.

5(s+2)
a. G6 ( s )=
s (s2 +6 s+15)
−1.5 0.833 0.6667
Thus, G6 ( s )= + +
(s+5) (s+3) s

5(s+2)
b. G7 ( s )=
s (s2 +6 s+ 9)
−1.1 1.7
Thus, G7 ( s )= +
(s+3) ¿¿

5(s+ 2)
c. G8 ( s )=
s (s2 +6 s+34 )
−0.1471− j 0.4118 −0.1471+ j 0.4118 0.2941
Thus, G8 ( s )= + +
( s+ 3− j5) (s+3+ j5) s

1.5 POSTLAB

1. Discuss your findings for Lab 5. What can you conclude?

- by using MATLAB application we can easily find out the problems or the error on the
equation it shows to you the error in step by step so that you can change it to make it
right. The result in Lab5, the outcome of various combinations is displayed in lab 5 in the
form of polynomials or in the factor forms.

2. Discuss the use of MATLAB to manipulate transfer functions and polynomials.


Discuss any shortcomings in using MATLAB to evaluate partial fraction expansions.

-MATLAB is a high-level programming language that can be used for a variety of tasks,
including the basic commands and others. The student work is being greatly helped by
this application as simple to use as computational codes, it shows to you the error step by
step and make it right, simulation, prototyping and others.

You might also like