You are on page 1of 7

EXPERIMENT VIII

Using Simulink
9. Objective
1 Student able to explain the usage of simulink facility in MATLAB for
digital signal processing application such as digital filter and adaptive
filter
35. Scope
1. Brief Theory
Adaptive Filter
Adaptive digital filter is digital filter which is able to set its coefficient
automatically. The most commonly used adaptive algorithm is Least Mean
Square (LMS) algorithm because of the efficient computation and storage
needed. LMS algorithm has a goal to reduce the square of error
occurred[1][2][3][4].
The following equation is the equation to renew coefficient for every
sampling in LMS algorithm.
Wn1 Wn 2en X n

A certain initial value from LMS algorithm coefficient will be convergent


and stable if:
1

N. power of input signal or maximum Eigen value from covariant matrix


input data.
dn
(reference signal)

+
yn
xn
(input signal)

Digital Filter

(output signal)
(error signal)

Adaptive
Algorithm
Komponen Utama
Filter Adaptif

Figure 8.1 Diagram Block of adaptive filter

Digital Signal Processing Guidance

Computer Engineering Laboratory

max

Experiment VIII

Page: 1of 4

2. Devices
1 PC
2 Matlab
61. References
1. Samuel D.Streans. (2002). Digital Signal Processing with Example in
Matlab. Edisi 1. CRC Press. New York. 978-0849310911.
2. Davis J Defatta ; Joseph G. Lucas ; William S.H. (1995). Digital Signal
Processing : A System Design Approach. John Wiley & Son.
3. Emannuel C Ifeachor. (1993). Digital Signal Processing : A Pratical
Approach. Addison-Wesley Publi.
4. John G Proakis ; Dimitris G.Manolakis. (1992). Digital Signal
Procesing, Principles, Algorithms, And Applications.2. Macmilian
Publishing. New York.
5. Dag Stranneby. (2001). Digital Signal Processing & Applications. Edisi
1. Newnes. Oxford. 0 7506 48112.
6. Richard G. Lyons. (2004). Understanding Digital Signal Processing.
Edisi 2. Prentice Hall. New Jersey. 978-0131089891.
7. Bob Meddins. (2000). Introduction to Digital Signal Processing. Edisi
1. Newnes. Oxford. 0 7506 5048 6.
8. Steven W. Smith. (1999). The Scientist and Engineer's Guide to
Digital Signal Processing. Edisi 2. California Technical Publishing.
California. 0-9660176-7-6.
9. About DSP Simulink:
http://web.ccr.jussieu.fr/ccr/Documentation/Calcul/matlab5v11/docs/000
02/0024b.htm
10. DSP
builder:
http://www.altera.com/products/software/products/dsp/dsp- builder.html
11. Matlab HELP

Digital Signal Processing Guidance


Experiment VIII

Computer Engineering Laboratory


Page: 2of 4

IV. Task Description and Procedure


1. Analog filter with Simulink
Design a low pass filter using simulink with fc = 2000Hz.
butter

Sine Wave

Time
Scope

Analog
Filter Design

Sine Wave1

Time
Scope1

Figure 8.2 Analog Filter


Draw and save the result. Repeat again for high pass filter, band pass
filter and band stop filter.
2. Filter FIR and IIR using Simulink
Design digital filter FIR and IIR using Simulink from experiment 6 and
experiment 7
DSP

Sine Wave

DF FIR

Digital Filter

Time
Scope

DSP

Sine Wave1

Time
Scope1

Figure 8.3 Digital Filter FIR


DSP

Sine Wave

IIR DF2T

Digital Filter1

Time
Scope

DSP

Sine Wave1

Time
Scope1

Figure 8.4 Digital Filter IIR


Digital Signal Processing Guidance
Experiment VIII

Computer Engineering Laboratory


Page: 3of 4

C. Adaptive filter with SimuLink

Siny al Input

Time
Scope1

128 Koefiesien
mu=0.005
DSP

Sinus 100Hz

Sine Wave

Siny al Input
Sinus 100Hz

Siny al Ouput

Output

Input
LMS
Desired

3.255e-016

Error
Wts

Koef isien Filter

LMS Filter
DSP

Display1
0.05624
Display

Sinus 1000Hz

Sine Wave1

Figure 8.5 Adaptive Filter


Draw the block diagram above and observe the result.
Then change sine wave 1000 Hz into noise signal and observe the
result!
22. Report Assignment
Use the following points in the report
1. Explanation about simulink in MATLAB and its application
2. Explanation about adaptive filter & least mean square and its algorithm
3. Analysis of this experiment
4. By using Simulink, design an adaptive echo cancellation circuit, make the
diagram block and explain how it works!
5. Give 5 conclusions about this experiment.

Time
Scope

Digital Signal Processing Guidance


Experiment VIII

Computer Engineering Laboratory


Page: 4of 4

You might also like