You are on page 1of 8

EXP:1:(GENERATION OF DISCRETE TIME SEQUENCE)

INPUT:
Enter the number of samples =

Unit impulse sequence


1

0.9

0.8

0.7

0.6
Amplitude

0.5

0.4

0.3

0.2

0.1

0
-5 -4 -3 -2 -1 0 1 2 3 4 5
Time

INPUT:
Enter the number of samples =

Unit step sequence


1

0.9

0.8

0.7

0.6
Amplitude

0.5

0.4

0.3

0.2

0.1

0
-5 -4 -3 -2 -1 0 1 2 3 4 5
Time
INPUT:
Enter the number of samples =

Ramp sequence
5

4.5

3.5

3
Amplitude

2.5

1.5

0.5

0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time

INPUT:
Enter the number of samples =

Sinusoidal signal
1

0.5
Amplitude

-0.5

-1
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
Time
cosine signal
1
Amplitude

0.5

0
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
Time
INPUT:
Enter the number of samples =

Exponentially growing signal


3

2
Amplitude

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time

Exponentially decaying signal


1
Amplitude

0.5

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time

INPUT:
Enter the number of samples =

Sawtooth Signal
1

0.8

0.6

0.4

0.2
Amplitude

-0.2

-0.4

-0.6

-0.8

-1
0 2 4 6 8 10 12 14 16 18 20
Time
EXPERIMENT 2:(LINEAR AND CIRCULAR CONVOLUTIONS)

INPUT & OUTPUT:


Enter the first sequence =
Enter the second sequence =
Output sequence =

LINEAR CONVOLUTION
30

25

20
Amplitude

15

10

0
0 0.5 1 1.5 2 2.5 3
Time index n

INPUT & OUTPUT:


Enter the first sequence =
Enter the second sequence =
Output sequence =
Circular Convolution
14

12

10

8
Amplitide

0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time index n
INPUT & OUTPUT:
Enter the first sequence =
Enter the second sequence =
Output sequence =

linear through circular convolution


30

25

20
Amplitude

15

10

0
0 1 2 3 4 5 6
Time index n
EXPERIMENT 3(AUTO CORRELATION AND CROSS CORRELATION

INPUT & OUTPUT:


Enter the first sequence =
Enter the second sequence =

plot of sequence B
plot of sequence A 4

amplitude
4
amplitude

2 2

0 0
1 1.5 2 2.5 3 1 1.5 2 2.5 3
samples samples

Auto correlation of A Auto correlation of B


20 20
amplitude

amplitude

10 10

0 0
1 2 3 4 5 1 2 3 4 5
samples samples

Cross Correlation of A and B Cross Correlation of B and A


20 20
amplitude

amplitude

10 10

0 0
1 2 3 4 5 1 2 3 4 5
samples samples
EXPERIMENT:4(FREQUENCY ANALYSIS USING DFT):

DFT COMPUTATION:

INPUT & OUTPUT:


Enter the length of the sequence =
Enter the length of the DFT =
Enter the sequence =
Magnitude of DFT =
Phase of DFT =

original time domain sequeence

4
Amplitude

0
0 0.5 1 1.5 2 2.5 3
Time index

Magnitude of the DFT samples


10
Magnitude

0 0.5 1 1.5 2 2.5 3

Frequency index k

phase of the DFT samples


5
phase

-5
0 0.5 1 1.5 2 2.5 3
frequency index k
IDFT COMPUTATION:

INPUT & OUTPUT:


Enter the length of the sequence =
Enter the length of the IDFT =
Enter the sequence =
Magnitude of IDFT =
Phase of IDFT =

original time domain sequeence


4
Amplitude

0
0 0.5 1 1.5 2 2.5 3
Time index

Magnitude of the IDFT samples


4
Magnitude

0
0 0.5 1 1.5 2 2.5 3
Frequency index k

Phase of the IDFT samples


5
phase

-5
0 0.5 1 1.5 2 2.5 3
frequency index k

You might also like