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

Solutions of Assignment#2-EE 361/chapter 2: T T T T T

The document contains solutions to assignment questions on signal processing concepts. Question 1 involves sketching and analyzing time-delayed and time-scaled rectangular pulse functions. Question 2 calculates the energy and power of a signal to determine if it is an energy or power signal. Question 3 analyzes the DC value, power, energy, and RMS value of a periodic waveform. Question 4 expresses various signals in terms of rectangular and triangular pulse functions.

Uploaded by

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

Solutions of Assignment#2-EE 361/chapter 2: T T T T T

The document contains solutions to assignment questions on signal processing concepts. Question 1 involves sketching and analyzing time-delayed and time-scaled rectangular pulse functions. Question 2 calculates the energy and power of a signal to determine if it is an energy or power signal. Question 3 analyzes the DC value, power, energy, and RMS value of a periodic waveform. Question 4 expresses various signals in terms of rectangular and triangular pulse functions.

Uploaded by

Rana Abrar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Solutions of Assignment#2-EE 361/Chapter 2

Q.1 Sketch the following functions:


t 
(a)   
 5 
t  1   
(b)    Is this a time-delayed version of   t  ? Yes, delayed by 1
 5   5 
t  t 
(c)    1 Is this a time-delayed version of    ? Yes, delayed by 5
 5   5 
t  t  1 t  t  5 
         1    
 5   5   5   5 

t t t
5 5 3 1 7 5 5 15
 
2 2 2 2 2 2

(d)  t  1
(e)  2t  1 Is this a time-scaled version of  t  1 ? Yes, time-scaled by 2.

(f)  2 t  1 Is this a time-scaled version of  t  1 ? No. It is a time-scaled

version of  t  2 .
t  1 / 2  t  1
 t  1  2t  1   
 1 / 2 
  
 2 t  1    
 1 / 2 

t t t
1 1 3 113 3 1 5
2 2 424 4 4

1
Q.2 Find the energy and power of the following signals and classify them as
energy or power signals.

 2
Ez   z t  dt

2
 t  10 
  20   cos 50t  dt
  5 
25/2
 400  cos2 50t dt
15/2

 25/2 25/2  1
 200   dt   cos 100t dt  using cos2    1  cos 2 
 15/2 15/2  2  

  sin 100t  
25/2 
   

 200 5   
  
  100   


   15/2 




 
0 
0  
 


 sin 1250t   sin 750t  

 200 5  

 100 


 


 

 1000

Ey    Py  0
The signal is an energy signal, since Ey  

2
Q.3 A function generator produces the periodic waveform shown below:
y t 

5 4 3 2 1 0 1 2 3 4 5
y t 
1

(a) Find the dc value, power, energy, and rms value of y t  .


The period of the signal is T0  4 .
dc value:
1  1  1
Y0  y t    2  1  2  1 
4  2 
 4
Power and Energy:
1 4

1

2 1 3 4
y t  dt  1  t  dt   1 dt   t  3 dt
2 2 2
Py  
4 0 
4 0 1 3

 1
3 
4
 1  t 3  
t  3   
1  
   2   
4  3   3   
   0   3 


 

1 1 1 

   2  
43
 3

2

3
Py  0  Ey  
(b) Is y t  a power or an energy signal? Why?
The signal is a power signal, since 0  Py  

3
Q.4 Express the following signals in terms of    and    .
f t  g   G  
4 1 2
1
2
t  
0 1 2 t 0 t 2 1 0 1 2
(a) (b) (c)

w t 
1
T
t
T
1

(d)
a)
 1  3
f t   2 t    4 t  
 2   2 
t  1  1
 4    2 t  
 2   2 
t  1  3
 2    2 t  
 2   2 

b)
 
g    1    
 t 

c)
   
G    2      
 4   2 
 3    3
 2         2   
 2   2   2 
   3  3
             
 4   2   2 

4
d)
   
t  T  t  T 
  
w t     2     2 
  T 
 T   
   
 
t  T 
 t   
     2  2 

 2T   T 
 
 
t  T 
 t   
     2  2 

 2T   T 
 

Q.5 Consider the waveform shown below:


w t 

4 2 0 2 4
t

(a) Find the power of w t  .


We have T0  2 and 0  2 /T0   .
2
 3
1 2 1  2  t   4
Pw   2  t  dt  
2
 
2 0 2  3  3
  0
(b) Find the complex exponential Fourier series coefficients for w t  .

For n  0 , we have
1
w t dt
T0 T0
W0 

1 2
  2  t dt
2 0
1

5
For n  0 , we have
1
 w t e 0 dt
 jn  t
Wn 
T0 0 T

1 2
  2  t e  jn tdt
2 0
2 1 2
  e  jn tdt   te  jn tdt
0 2 0
2 2
e  jn t  1  jte  jn t 1  jte  jbt 1
    
  n   n 22 e
 jn t 
 using  te  jbtdt   2 e  jbt
  jn  0 2  0 b b
1 e  j 2n  
1 2 je  j 2n 
e  j 2n 
 1 
    using e  j 2n   1
jn  2  n n 2  2 
j

n
Therefore,
1, n0

Wn   j
 , n  0
n

(c) Using MATLAB (if possible), plot the magnitude and phase spectra of w t  .

%Program Q.5c.m
close all;clear all;clc

n=-10:10;
W=-1j./(n*pi);
W(11)=1;

subplot(2,1,1);
stem(n,abs(W));
xlabel('$n$','interpreter','latex');
ylabel('$\left|W_n\right|$','interpreter','latex');

subplot(2,1,2);
stem(n,angle(W));
xlabel('$n$','interpreter','latex');
ylabel('$\angle{W_n}$','interpreter','latex');

6
7

You might also like