# EE430 Homework 1 solved

\$30.00

Category:

## Description

1) A discrete-time signal ๐ฅ[๐] is obtained by sampling a continuous-time sinusoidal signal
๐ฅ๐
(๐ก) = 4 sin(20000๐๐ก +
๐
13)
at a sampling rate of 3 kHz.
a) Describe the set of all other continuous-time sinusoidal signals (their frequencies) that yield ๐ฅ[๐] when
sampled at 3 kHz.
b) Describe the set of all other sampling frequencies that yield ๐ฅ[๐] from ๐ฅ๐
(๐ก).
2) Among the following sinusoidal signals, identify periodic ones and find their fundamental periods.
sin(1.74๐๐ + 3.1) , sin(1.74๐๐ + 3.1๐), cos (15.74๐๐ +
3๐
8
), cos(โ๐๐) , cos(๐โ๐๐), cos(๐โ2 ๐)
3) A linear sistem whose response to a shifted impulse, ๐ฟ[๐ โ ๐], is โ๐
[๐] = (๐ โ ๐)๐ข[๐ โ ๐]. Find the output, ๐ฆ[๐]
of this system for an arbitrary input, ๐ฅ[๐]. Is this system time-invariant? Explain clearly by using ๐ฆ[๐ โ ๐] and
๐ฅ[๐ โ ๐].
4) What does the following system do? Is it linear, time-invariant? Prove your answer.
๐ฆ[๐] =
{

๐ฅ [
๐
2
] ๐๐ ๐ ๐๐  ๐๐ฃ๐๐
๐ฅ [
๐ โ 1
2
] + ๐ฅ [
๐ + 1
2
]
2
๐๐ ๐ ๐๐  ๐๐๐
5) Are the following systems causal, stable? Justify/discuss/prove.
๐ฆ[๐] = 2
๐ฟ[๐+1] + ๐ฅ[๐ โ 3]
๐ฆ[๐] = {
๐ฆ[โ๐ฟ[๐ โ 1]] + ๐ฅ[๐ โ 3] ๐ > 0
2
๐๐ฅ[๐ โ 3] ๐ โค 0
6) Let ๐ฆ[๐] = ๐ฅ[๐] โ ๐ฅ[๐] where โ is the convolution operator. If the first and the last non-zero elements of ๐ฅ[๐] are
equal to ๐ฅ[โ6] = โ3 and ๐ฅ[24] = โ4, respectively, find the first and the last non-zero elements of ๐ฆ[๐].
7) Calculate the value for output, y[n], as
n ๏ฎ ๏ฅ
for the LTI system, whose input is x[n]= u[n] and its impulse
response is equal to
๏ ๏ [ ]
3
1
[ ] 2
2
1
3
1
h n u n u n
n n๏ญ
๏ท
๏ธ
๏ถ
๏ง
๏จ
๏ฆ
๏ท ๏ญ
๏ธ
๏ถ
๏ง
๏จ
๏ฆ
๏ฝ
8) Consider the following difference equation of a causal LTI system,
๏ ๏ ๏ 1๏ ๏ ๏ ๏ 1๏ ๏ 2๏
2
1
y n ๏ญ y n ๏ญ ๏ฝ x n ๏ญ x n ๏ญ ๏ซ x n ๏ญ
a) Find the impulse response, โ[๐].
b) Find the frequency response, ๐ป(๐
๐๐).
c) Plot the magnitude response, |๐ป(๐
๐๐)| and phase response, โก๐ป(๐
๐๐), in MATLAB using โfreqzโ command.
d) Let ๐ฅ[๐] = cos (
๐
3
๐) + sin (
๐
2
๐ +
๐
4
) be the system input. Find the output ๐ฆ[๐].
e) Prove that ๐ป(๐
๐๐) = ๐ปโ
(๐
๐(2๐โ๐)
). Does this equality hold for an arbitrary โ[๐]? Explain.
9) In the [โ๐, ๐) interval, the DTFT, ๐(๐
๐๐), of a real sequence ๐ฅ[๐] is nonzero only in [๐, ๐],๐ < 0 < ๐, ๐ โ ๐ =
๐
2
;
otherwise it is arbitrary.
a) Plot the magnitude and phase of a typical ๐(๐
๐๐) for โโ < ๐ < โ.
b) Express the DTFTs, ๐๐ถ(๐
๐๐) and ๐๐(๐
๐๐), respectively, of cos (
๐
5
๐)๐ฅ[๐] and sin (
๐
5
๐)๐ฅ[๐] in terms of
๐(๐
๐๐).
c) Assume that ๐(๐
๐๐) is real valued and still complies with the specifications above. Plot typical magnitudes
and phases for ๐(๐
๐๐), ๐๐ถ(๐
๐๐) and ๐๐(๐
๐๐).
10) Textbook question 2.55
11) Textbook question 2.60
12) Textbook question 2.65
The following is a computer problem.
13) MATLAB PART
a) Create a MATLAB function named myconv in a new m-file. This function will compute and return the
convolution of two finite length sequences using multiplications and delay operations.
b) Generate the sequences x[n]=[ 1 2 3 4 5 4 3 2 1] and h[n]=[1 1 1].

Convolve these sequences using myconv. Compute the convolution output and give the graph of it (using
stem command). Verify the result using conv command. Plot the result on the same graph you plot
myconv output.
c) Read the description of freqz command of MATLAB. Using this command, plot the 1024-point sampled
magnitude and phase response of the filter h[n]. Comment on its magnitude and phase chracteristics. Based
on your comment and the convolved sequence in part b), explain the reason of smoothing effect of this filter.
d) Now, consider the filter h2[n]=[1 -2 1]. Convolve x[n] with h2[n] and plot the result using stem command.
e) Using freqz command, plot the 1024-sampled magnitude and phase response of
the filter h2[n]. Comment on its magnitude and phase chracteristics. Based on your comment and the
convolved sequence in part d), explain the effect of this filter.
f) Generate the following sequence in MATLAB
n=0 n=0
n=0
๐ง[๐] = {
1 + sin (
๐
3
๐) + sin (
2๐
3
๐), ๐ = 0, 1,โฆ 59
0, otherwise .
Plot z[n]. Using freqz command, plot the 1024-point sampled magnitude and phase response of it. Comment
on the results.
g) Convolve the sequence z[n] with the filter h[n]. Denote the output by y[n]. Plot y[n]. Using freqz command,
plot the 1024-point sampled magnitude and phase response of it. Comment on the results.