You are on page 1of 40

x(n)

 Unit Sample Sequence

 The resulting plot looks like this

Unit Sample Sequence

2
1.8
1.6
1.4
1.2
1
0.8
0.6
0.4
0.2
0
­5
­4
­3
­2
­1
0
1
2
3
4
5
n

x(n)

 Unit Step Sequence

 Type “stepseq(0,-5,5)” we get:

Unit Sample Sequence

2
1.8
1.6
1.4
1.2
1
0.8
0.6
0.4
0.2
0
­5
­4
­3
­2
­1
0
1
2
3
4
5
n

n

2

n n

=

1

1

2

n

2

n

1

1

2

*

x

2

x

N

1

0

2

1

2

 Example 1 plots:

Sequence in Example 1a

20
10
0
­10
­20
­30
x1(n)
­10
­5
0
5
10
15
n
Sequence in Example 1b
40
30
20
10
0
­8
­6
­4
­2
0
2
4
6
8
10
12
n
x2(n)

(

0 1

.

+

j . )n

0 3

 Example 2 plots:

real part

imaginary part

 2 1 0 ­1 ­2 1 0 ­1 ­2 ­3 ­10 ­5 0 5 10 ­10 ­5 0 5 10 n n magnitude part phase part 3 200 0 100 ­100 ­200 2 1 0 ­10 ­5 0 5 10 ­10 ­5 0 5 10 n n

n

k n

=

1

e

e

e

o

o

o

e

o

• x e

1
2

o

1
2

Sequence Synthesis

 Example 2: The plots

Rectangular pulse

1
0.8
0.6
0.4
0.2
0
x(n)

Even Part

1
0.8
0.6
0.4
0.2
0
xe(n)
 ­10 ­5 0 5 10 ­10 ­5 0 5 10 n n

Odd Part

0.6
0.4
0.2
0
­0.2
­0.4
­10
­5
0
5
10
n
xo(n)

n

n = 0

n

N 1

n = 0

n

N

x,y

n =•

n =

x,x

n =•

n =

 Example of a simple convolution:

Convolved sequence

Sequence x(m)

50
15
10
0
5
­50
0
­100
­5
0
5
10
15
0
2
4
6
8
n
Sequence y(o)
m
4
2
Is This Correct???
0
­2
­4
­6
0
2
4
6
y(n)
y(o)
x(m)

o

y(n)

 Lets plot y(n):

Convolved Signal y(n)

60
40
20
0
­20
­40
­60
­4
­2
0
2
4
6
8
ny

rxy

rxy

Correlations

 The plots:

Crosscorrelation: noise sequence 1

250
200
150
100
50
0
­50
­4
­2
0
2
4
6
8
lag variable 1
Crosscorrelation: noise sequence 2
250
200
150
100
50
0
­50
­4
­2
0
2
4
6
8

lag variable 1