Sei sulla pagina 1di 6

INPUT:

enter the value of N:100

OUTPUT:
OUTPUT: the calculated energy E of the signal is 1.3333

INPUT: enter the frequency=20

OUTPUT:

the calculated power p of the signal Is 0.4975

ENERGY of a signal
linear convolution program
INPUT: enter i/p X(n): [1 2 3 4] enter i/p h(n): [4 5 6 7]
OUTPUT:
convolution of X(n)&h(n) is y(n): 4 13 28 50 52 45 28

circular convolution program


INPUT: enter i/p x(n):[1 2 3 4] enter i/p sequence h(n)[1 2 1 1]
OUTPUT: circular convolution of x(n)&h(n) is y(n): 14 11 12 13
INPUT: enter the first sequence x(n): [1 2 1 1] enter the second sequence h(n): [1 2 3 4]
OUTPUT:
cross correlation of x(n)&h(n) is y(n): 1 3 7 12 12 11 4

INPUT: enter the sequence x(n): [1 2 1 1]

OUTPUT: auto correlation of x(n)&x(n) is h(n): 1 3 5 7 5 3 1


INPUT: enter the sequence: [1 1 1 1 1 1 1 1]
enter the length of fft:8

OUTPUT: fourier transformed signal X =


8 0 0 0 0 0 0 0

Potrebbero piacerti anche