## Description

1. Generate a signal that consists of a sum of sine waves of frequencies 1 to 50 kHz. Set t to be

from 0 to 2 seconds, using an interval of 0.001s.

signal = (

50000

X

f=1

sin(2πf t))

2. Create a Butterworth lowpass filter with a sampling frequency of Fs = 100 kHz, a passband

frequency of Fpass = 10 kHz, a stopband frequency of Fstop = 20 kHz, a passband attenuation of

Apass = 5dB, and a stopband attenuation of Astop = 50dB.

3. Create a Chebychev I highpass filter with a sampling frequency of Fs = 100 kHz, a passband

frequency of Fpass = 35 kHz, a stopband frequency of Fstop = 15 kHz, a passband attenuation of

Apass = 2dB, and a stopband attenuation of Astop = 40dB.

4. Create a Chebychev II bandstop filter with a sampling frequency of Fs = 100 kHz, a passband

frequency of below the frequency Fpass1 = 5 kHz and above Fpass2 = 45 kHz, a stopband frequency

of between Fstop1 = 15 kHz Fstop2 = 35kHz, a passband attenuation of Apass = 5dB, and a

stopband attenuation of Astop = 50dB.

4. Create a Elliptic bandpass filter with a sampling frequency of Fs = 100 kHz, a stopband

frequency of below the frequency Fstop1 = 15 kHz and above Fstop2 = 35 kHz, a passband

frequency of between Fpass1 = 20 kHz Fpass2 = 30 kHz, a passband attenuation of Apass = 5dB,

and a stopband attenuation of Astop = 50dB.

1