Sunteți pe pagina 1din 5

King Saud University

College of Computer and Information Sciences


Department of Computer Engineering
Course/ Tutorial No: 340 CEN/ 3.
Date: 3/9/1436
No of questions: 3

3582
3421

:
:

I. The following signals are given:

us=2cos(t);
Us=2cos(t + );
Where =314 [rad/s] & = 45o
a) Plot, using Matlab, z(t) = us(t) + Us(t) in the interval 0 to 4T with:
- blue solid line for u(t), magenta dashdot line for Us(t) and green dashdot line for z(t).
- label the t-axis with radian , the y-axis with volt and the title plot with us, Us, zs.
- legend us, Us, zs.
b) Determine the following:
- The frequency of these signals.
- The common parameters & main difference between the signals us & Us.
c) Draw the conclusion concerning the frequency of the sum of the resulting signal zs.
d) Repeat the same for point (a) supposing that: us=2cos(314t) & Us=2cos(628t + 45);
& draw the conclusion concerning the resulting signal zs: is it periodic? If yes,
determine its period.

Tut3/340CEN/56s

Solution
a)
- Determination of the of the upper limit of t:
T = 2/ = 6.28/314 = 20 ms
4T = 4 x 20 = 80 ms = 0.08 s
- Determination of adequate number of points for getting a right plot:
Let us take 25 point for each period; thus the total No is 100 points.
- Matlab program & the plot:
>> t = linspace(0,0.08,100);
>> us=2*cos(314*t);
>> Us=2*cos(314*t+pi/4);
>> zs=us+Us;
>> plot(t,Us,'b-',t,us,'m-.',t,zs,'g-.');
>> xlabel('t (radian)');
>> ylabel('y (volt)');
>> title('Plot of us, Us, and zs');
>> legend('us','Us','zs')

Plot of us, Us, and zs


4
us
Us
zs

3
2

y (volt)

1
0
-1
-2
-3
-4
0

0.02

0.04
t (radian)

0.06

0.08

Tut3/340CEN/56s

b)
- The frequency: f = 1/T = 1/0.2 = 50 Hz.
- The common parameters between these signals are:
- The amplitude = 2 (Let it in [v]).
- [rad/s]; f [Hz]; T [s]: Their values mentioned above.
- The main difference is the phase : = 0 for us & 45o (or /4) for Us
i.e. there is a phase shift between these two signals.
c) The frequency of the sum of the resulting signal zs is the same as us & Us
i.e. equal 50 Hz.
>> t = linspace(0,0.08,100);us=2*cos(314*t);
>> us=2*cos(314*t);Us=2*cos(314*t+pi/4);
>> Us=2*cos(2*314*t+pi/4);
>> zs=us+Us;
>> plot(t,Us,'b-',t,us,'m-.',t,zs,'g-.');
>> xlabel('t (radian)');
>> ylabel('y (volt)');title('Plot of us, Us, and zs');
>> title('Plot of us, Us, and zs');
>> legend('us','Us','zs')
Plot o f us, Us, an d zs
4
us
Us
zs

y (volt)

2
1
0
-1
-2
-3
0

0.02

0.04
t ( ra dian)

0.06

0.08

Yes: It is periodic ; the period is equal 2/ (of us) = 6.28/314 = 20 ms. It is


called fundamental period : T0

Tut3/340CEN/56s

II. Find the energy content of the following exponentially decreasing signal;

and draw the conclusion concerning the class of signals it is belonging.

Solution

[J]

III. Calculate the total energy and the average power over one period T0 for the

following signal; and draw the conclusion.


x(t) = A cos t

Tut3/340CEN/56s

Solution

P period = E period /T0 = A2/2 [w]


Conclusion: This signal has finite average power and infinite total energy.

Tut3/340CEN/56s

S-ar putea să vă placă și