You are on page 1of 8

Islamic University of Gaza

Faculty of Engineering
Electrical Engineering Department
Spring-2011 , Eng.Mohammed Elasmer
________________________________________________________________________________________

Homework#2
Solution
Problem (1)
= 6 6
1 = 4

, make a sketch of

() 3 = ( 2 2 + 1)

2 = (2 3)

Solution:

X(-n)

8
7
6
5
4
3
2
1
0
-10

-9

-8

-7

-6

X(4-n)

6
5
4
3
2
1
0
-6

-5

-4

-3

-2

-1

x(n2-2n+1)

6
4
2
0
-4

-2

-5

-4

-3

-2

-1

Problem (2)

+
=

, , ,
Solution:

1 1 =

1 1 +
=

2 2 =

2 2 +
=

3 = 1 + 2 3 =

3 3 +
=

1 + 2

1 + + 2 +

1 + 2 =

1 1 + +
=

2 2 + . (2)
=

1 2

1 1 =

1 1 +
=

1 2 =

1 1 + . . (3)
=

1 =

1 1 +
=

3 4

. 4

+
=

0 =

0+ =
=

Problem (3)

:
= 0.5 6
= 2

+3 4

1,
0,

9 0

= 2 , ()

Solution:

= 0, 0.5, 1 ,1.5, 2, 2.5

= 2, 0, 2 ,0, 2, 0, 2

start
end

0
5

-3
3

-3
8

= = 0,1,2,2 ,2, 2, 3, 2, 3,2,2, 4, 5

0
0

0
0
0

0
2

0
0

0
-2

0
0

0.5
2

1
0

1.5
-2

2
0

2.5
0

0
0
0
0
2

0
0
-1
0
3

0
0
-2
0
4

0
0
-3
0
5

0
0
-4
0
0

0
0
-5
0
0

0
0
0
0
0

0
0
0
0
0

0
0
0

0
0
0
0

0
0
0
0
1

0
0

0
0
0
0

0
0
0
1

0
0
0
2

0
-1
0
3

0
-2
0
4

0
-3
0
5

0
-4
0
0

0
-5
0
0

0
0
0
0

0
0
0
0

0
0
0
0

0
0
0
0

0
0
0
0

0
0
0
0

-2

-3

-4

-5

h(n)

2.5

x(n)
2

1
1.5

-1

0.5
0
0

-2
-3

-2

-1

x*h
4
2
0
-2
-4
-6
-4

-2

(b)

=
< 9 9
, (n)=0
9 0 9

=
=9

1 2

2k = 2n
=9

=2

=9
n

y n =2

()

=9

29 2n +1
= 2n 2n+1 29 = 2 2
12

+1
1

n+9

> 0
0

0
()

=
=9

1 2

=2

=9

2 = 2
=9

= 2n (29 + 2)

0
2 2 n+9
n

< 9

9 n 0
n>0

+2

y(n)

1.8
1.6
1.4
1.2
1
0.8
0.6
0.4
0.2
0
-10

-5

10

15

20

29 20+1
12

Problem (4)
Suppose we have two systems with the following difference equations

() = () + 2( 1) + ( 2)
() = 0.9( 1) + ().

Assume that y(1) = 0.


(a) Find the impulse responses of these systems.
(b) State whether each system is FIR or IIR, and why.
(c) State whether each system is stable, and show why.

Solution:
For system (1)

= + 2 1 + 2 =
2

y(n)
1.5
1
0.5
0
-20

-10

10

20


c system 1 : is a stable system all FIR systems are stable .
or if the sequence is summable sequence then the system is stable

= 1 + 2 + 1 = 4 <

For system (2)

() = 0.9( 1) + ()
0 = 0.9 1 + 0 = 0.9
1 = 0.9 0 + 1 = 0.9 2
2 = 0.9 1 + 1 = (0.9)3
.
= 0.9

y(n)

0.8
0.6
0.4
0.2
0
-0.2
-0.4
-0.6
-0.8
-1
-10

10

20

30

40

50

or: by finding Homogenous solution

for Homo. Sol. : x(n)=0


y (n ) 0.9 y (n 1) 0

n 0.9 n 1 0
n 1[ 0.9] 0
0.9
y h (n ) C 1 0.9

y (n ) y h (n ) C 1 0.9

y (0) 0.9 y (0 1) x (0) y (0) 0 1 y (0) 1


y (n ) 0.9 u (n )
n

: ()

for system 2:

0.9

=0

0.9

=0

0.90 0.9
=
= 0.5263 < stable system
1 + 0.9

Problem (5)
In radar and sonar system cross correlation can be used to detect the delay between the
transmitted and received signals. Hence the distance between the target and sonar/radar can
be detected. If we assume that is the transmitted signal and is the received signal.
= + ()
where is the time delay and is additive random noise. If the signals and
are sampled according to the sampling theorem, and are processed digitally to find the
delay and hence the distance, then
= = + ()

Solution:
= . +

. ( ) =
=

. [ . + ]
=

. . +
=

. ( )
=

. = 0 , &
=

. . = . ( + )

+ =
=

You might also like