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

Solution: Homework#1

This document contains the solution to homework problems from an Electrical Engineering department. It includes solutions to problems involving representing signals as sums of sinusoids, sampling theory, sampling frequency, aliasing, and downsampling. The problems cover topics like representing signals as sums of impulses, sampling analog signals, determining periodicity of sampled signals, sketching sampled signals, and determining sampling rates from signal specifications.

Uploaded by

Marlon Blasa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
114 views

Solution: Homework#1

This document contains the solution to homework problems from an Electrical Engineering department. It includes solutions to problems involving representing signals as sums of sinusoids, sampling theory, sampling frequency, aliasing, and downsampling. The problems cover topics like representing signals as sums of impulses, sampling analog signals, determining periodicity of sampled signals, sketching sampled signals, and determining sampling rates from signal specifications.

Uploaded by

Marlon Blasa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Islamic University of Gaza

Faculty of Engineering
Electrical Engineering Department
Spring-2011
_________________________________________________________________________________

Homework#1
Solution
External Problem
Solution :
1
(a) cos(2 f o t )   (f  f o )   (f  f o )
2
5cos(2  2000  t )  3cos(2  3000  t )
 2.5  (f  2000)   (f  2000)   1.5  (f  3000)   (f  3000) 

x max  x min 8  (8)


(b)     0.064  L  251
L 1 L 1
log 251
L  2b  257  log 2 257  log 2 2b   b  8 bits/sample
log 2
sample sample bit 1
Fs    ( )(36, 000)  8000 sample/sec
sec bit sec 8
1 1
x (n )  x a (nT s )  5cos(4000 n )  3cos(6000 n )
8000 8000
 5cos(0.5 n )  3cos(0.75 n )
1 3
f 1  Hz and f 2  Hz
4 8

(c) the sampled signal spectrum is given by:


1 
X s (f) =  X (f  nf s )
T n 
1 1 1 1 1
 .......  X (f  2f s )  X (f  f s )  X (f s )  X (f  f s )  X (f  2f s )  .......
T T T T T
(d)
since: Fs >2Fmax
hence, we can recover the original spectrum using a reconstruction LPF

t
(e) y (t )  x (tFs )  x ( )  5cos(0.5 (8000t ))  3cos(0.75 (8000t ))
Ts
 5cos(2  2000  t )  3cos(2  3000  t )

3 3
(f) SQNR= 2 2b  2(16)  98304
2 2
 10 log 98304  50 dB

(g) for F2 =5kHz


1
(a) cos(2 f o t )   (f  f o )   (f  f o ) 
2
5cos(2  2000  t )  3cos(2  5000  t )
 2.5  (f  2000)   (f  2000)   1.5  (f  5000)   (f  5000) 

(b) Fs  8000 sample/sec


1 1
x (n )  x a (nT s )  5cos(4000 n )  3cos(10, 000 n )
8000 8000
 5cos(0.5 n )  3cos(1.25 n )  5cos(0.5 n )  3cos( 0.75 n )
 5cos(0.5 n )  3cos(0.75 n )
1 3
f1  Hz and f 2  Hz
4 8
(c) the sampled signal spectrum is given by:
1 
X s (f) =  X (f  nf s )
T n 
1 1 1 1 1
 .......  X (f  2f s )  X (f  f s )  X (f s )  X (f  f s )  X (f  2f s )  .......
T T T T T

(d)
since: Fs < 2Fmax =10 kHz
hence, we can't recover the original spectrum

(e)
t
y (t )  x (tFs )  x ( )  5cos(0.5 (8000t ))  3cos(0.75 (8000t ))
Ts
 5cos(2  2000  t )  3cos(2  3000  t )
Textbook

1.3 Determine which of the following sinusoids are periodic and compute their
fundamental period:

(a) x(t)=3cos(5t+π/6)

analog sinusoidal signal  always periodic


5 1 2
  5  2 F  F   T ( peiod )    1.256
2 F 5
3

-1

-2

-3
0 0.5 1 1.5 2 2.5 3

(b) x(n)=2exp[ j(n/6 - π) ]


1 1
w   2 f  f  (not rational)
6 12
 non  periodic

(c) x(n)=cos(πn/6) cos(πn/3)

1
cos(x ) cos( y )  cos(x  y )  cos(x  y )
2
n n 1 n n n n  1  3 n n 
x (n )  cos( ) cos( )  cos(  )  cos(  )   cos( )  cos( ) 
3 6 2 3 6 3 6  2 6 6 
3 n 3 3 1
cos( ) w   2 f  f  = ( rational, N1 =4)
6 6 12 4
n  1
cos( )  w   2 f  f  ( rational, N 2 =12)
6 6 12
 x(n) periodic with period=LCM(N1 , N 2 )  LCM(4,12)  12

(e) x(n)=cos(πn/2)-sin(πn/8)+3cos(πn/4+π/3)

n  1
cos( ) w  2 f  f = ( rational, N1 =4)
2 2 4
n  1
sin( )  w   2 f  f  ( rational, N 2 =16)
8 8 16
n   1
cos(  )  w   2 f  f  ( rational, N 2 =8)
4 3 4 8
 x(n) periodic with period=LCM(N1 , N 2 )  LCM(4,16,8)  16
1.5 Consider the following analog sinusoidal signal signal:

xa(t)=3sin(100 π t)

(a) Sketch xa(t) for 0<t<30ms

1 1
  100  2 F  F  50 Hz  T ( peiod )    20ms
F 50
3

-1

-2

-3
0 0.005 0.01 0.015 0.02 0.025 0.03

(b) Fs=300 samples/sec . Determine x(n)


1
x (n )  x a (nT s )  3sin(100 nT s )  3sin(100 n )
300
n
x (n )  3sin( )
3
 1
w   2 f  f   period N=6
3 6

(c) Compute the sample values in one period of x(n) , And sketch x(n) with x(t)

n
x (n )  3sin( )
3
3 3 3 3
x (0)  0 , x(1)= , x(2)= , x (3)  0
2 2
3 3 3 3
x (4)   , x(5)=  , x (6)  0
2 2

(d) Find the sampling frequency Fs such that the

signal x(n) reaches its peak value of 3 ?


n 1
3  3sin(100 )  sin(100 )  1
Fs Fs
1 
100   Fs  200 sample/sec
Fs 2
1.11 Determine y(t) if the input is: X(t)= 3cos(100*pi*t) + 2sin(250*pi*t)
Where T=5 ms , T’ =1 ms

x (n )  x a (nT s )  3cos(100 n 0.005)  2sin(250 n 0.005)


 3cos(0.5 n )  2sin(1.25 n )
t t t
y (t )  x a (tFs ')  x ( )  3cos(0.5 )  2sin(1.25 )
T' 0.001 0.001
 3cos(500 t )  2sin(1250 t )

1.15 (a) Ffold=Fs/2=5k/2=2.5kHz , Fundamental(-2.52.5 kHz )

Fo=0.5,2,3 and 4.5 kHz

3kHz aliased -2kHz , 4.5kHz aliased -0.5kHz

fo=500
1

-1
0 10 20 30 40 50 60 70 80 90 100
fo=2000
1

-1
0 10 20 30 40 50 60 70 80 90 100
fo=3000
1

-1
0 10 20 30 40 50 60 70 80 90 100
fo=4500
1

-1
0 10 20 30 40 50 60 70 80 90 100
Fo=2kHz , Fs=50kHz , f=0.04 Hz
(b) f=F/Fs=2/50 = 0.04 Hz 1

N=25=1/f
0.5

-0.5

-1
0 20 40 60 80 100

(c)
1
Down sampling 0.8

0.6
f=F/Fs=2/25= 0.08 Hz
0.4

N=12.5=1/f 0.2

-0.2

-0.4

-0.6

-0.8

-1
0 5 10 15 20 25 30 35 40 45 50

You might also like