Professional Documents
Culture Documents
2)
1/2 -2 t < -1
3/2 0t<2
4) a) A square wave, x(t), given below has amplitude of 2 volts. What is the
fundamental frequency of this signal? Find the Fourier series coefficients
(ak’s) of x(t) including ao. Find the Fourier transform of only one pulse
between -1 and 1 seconds, i.e., the signal is not periodic anymore.
x(t)
2
... ...
-6 -4 -1 1 4 6 t (sec)
1
5) What is the purpose of using Fourier transform in signals and systems?
Give at least two reasons.
6) y(t) = cos (wc t) x(t), if X(jw) is the Fourier transform of x(t) what is the
Fourier transform of y(t)? How would you obtain x(t) back when you only
know y(t) and wc?
8) x(t) = 2(t-1) - 3(t-2) + 2(t-4), take the integral of x(t) to get y(t). Plot
x(t) and y(t).
a) Plot x[n].
12) What is the goal of signal processing? Explain the difference between
analog and digital signal processing.
13) Write a MATLAB code to generate a signal which is the sum of two sine
waves with with different frequencies amplitudes and phase. Then add a
random noise to your signal with different SNR ratios.
b) Take the Fourier transform of this signal and plot it next to the signal
itself.
c) What does this exercise tell you? Change the parameters in your signal
and FFT function and observe the effect of each parameter on the resultant
signal and FFT.
d) Design a filter to get rid of one of the sine waves, and show your results.
14) Record your sound using MATLAB while you are saying say “a” and “b”
and “c” in different files. The duration of each recoding will be 0.5 seconds.
Repeat this 6 times. As a result, you will have 18 files. Five of the recordings
2
will serve as your training set, and one as test set. Now find a way to
determine which letter are you saying using this training and test sets. Show
your results. Explain your code.
15) Find an ECG data from the internet. You should know the sampling
frequency. Now sample this signal with half of the sampling frequency and
perform interpolation on the subsampled signal, and check whether your
interpolated signal resembles the original signal. Repeat this for quarter of
the sampling frequency. Interpret your results. What is the main message
here?