I wo continuous signals are given as follows:

x1 (t) = sin

(2nt

2nt

20

; X2 (t) = sin

3

Please write a Scilab program to do the following:

6.

Sampling the signals x1 (t) and x2 (t) for 0

Et

Create a new signal s(t):

# 200 with step size 1

s (t) = x1(t) + X2(t)

8. Use Scilab function wiff) to design a low pass filter with following requirements:

Order of the filter - 33; Use Kaiser Window, cut off frequency = 0.2, and trade-off between main-lobe and side-lobe

parameter is 5.6

9. Filter the signal s(t) by using Scilab function:

y = convol(wft,s)

Where wit is the vector of designed filter coefficients, s is the input signal, and y is the output signal or filtered

signal.

10. Plot the signal s(t) and y(t) with following requirements:

Plot both signals in the same window

Signal s(t) is in the upper half of the window with title: "Sum of Two Sinusoids"

Signal y(t) is in the bottom half of the window with title: "Filtered Signal By a Windowed FIR

Low-pass"

Label the horizontal axis with "Time"; and vertical axis with "Amplitude" for both graphs

You can find an example for plotting these graphs in this unit's lecture.