Professional Documents
Culture Documents
EELE420 Matlab
EELE420 Matlab
EELE420 Matlab
𝑛).
ii) Define the domain as −20 < 𝑛 < 20 iii) Generate the noise
signal by using randn command iv) Add noise signal to the
original signal and obtain observed signal 𝑥[𝑛].
v) Implement the moving average filter to 𝑥[𝑛] and define it as 𝑦[𝑛]. Use
conv(. ,. , ‘same’) function to implement
𝑦[𝑛] = 𝑥[𝑛] ∗ ℎ[𝑛].
vi) Implement filter for different 𝑀1and𝑀2; 𝑀1 = 𝑀2 = 4,10,20 … and
observe the output. vii) Plot 𝑥0[𝑛], 𝑥[𝑛] and 𝑦[𝑛] for every step.
Project code:
Plotted graph.