Sei sulla pagina 1di 5

DIGITAL SIGNAL PROCESSING LAB

NAME : RUPAM JOGAL


ROLL NO : 1401003
LAB 1

AIM:
1) To generate a signal by adding a sine wave with a random signal using LMS function
with a suitable delta and compare the desired signal with the output signal
2) To generate a signal randomly using LMS function with a suitable delta and compare
the desired signal with the output signal
BRIEF THEORY:
An adaptive filter is a system with a linear filter that has a transfer function controlled
by variable parameters and a means to adjust those parameters according to an
optimisation algorithms. Because of the complexity of the optimization algorithms,
almost all adaptive filters are digital filters.

Where y(n) is the output and x(n) is the input and h(k) denotes the filter coefficients
M+1 is the order of the sequence and N is the order of the filter.
Then we need to generate the error function by subtracting the obtained output from
the desired output.
Similarly using adaptive filter then we test the lms function for a random
signal,unknown system can be implemented by FIR and by giving its coefficients a and
b and again comparing the adaptive signal with the desired signal.

MATLAB CODE:
Lms function
Main code
Exercise 1

Exercise 2
SIMULATION RESULTS:
Exercise 1
Exercise 2

RESULT ANALYSIS:
1) As we can see from the above figure of the simulation result that y that is the output
signal and d that is the desired signal are almost similar to each other
2) And the second figure also depicts that the noise that is the random signal and the
desired signal are also almost similar to each other.

Potrebbero piacerti anche