Solved ECE113: DSP Homework 1

$30.00

Original Work ?

Download Details:

  • Name: hw1-nangbb.zip
  • Type: zip
  • Size: 8.30 MB

Category: Tags: , , You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (1 vote)

Problem 1:

1.1 Classify the following signals according to whether they are (1) one- or multi-dimensional; (2) single or multichannel, (3) continuous time or discrete time, and (4) analog or digital (in amplitude). Give a brief explanation.
(a) Closing prices of utility stocks on the New York Stock Exchange.
(b) A color movie.
(c) Position of the steering wheel of a car in motion relative to car’s reference frame.
(d) Position of the steering wheel of a car in motion relative to ground reference frame.
(e) Weight and height measurements of a child taken every month.


Problem 2:

1.3 Determine whether or not each of the following signals is periodic. In case a signal is periodic, specify its fundamental period.
(a) xa(t)=3cos⁡(5t+π/6)
(b) x(n)=3cos⁡(5n+π/6)
(c) x(n)=2exp⁡[j(π/6−π)]
(d) x(n)=cos⁡(π/8)cos⁡(πn/8)
(e) x(n)=cos⁡(πn/2)−sin⁡(πn/8)+3cos⁡(πn/4+π/3)


Problem 3:

1.5 Consider the following analog sinusoidal signal:

xa(t)=3sin⁡(100πt)

(a) Sketch the signal xa(t) for 0≤t≤30 ms.
(b) The signal xa(t) is sampled with a sampling rate Fs=300 samples/s. Determine the frequency of the discrete-time signal x(n)=xa(nT)T=1/Fs, and show that it is periodic.
(c) Compute the sample values in one period of x(n). Sketch x(n) on the same diagram with xa(t). What is the period of the discrete-time signal in milliseconds?
(d) Can you find a sampling rate Fs such that the signal x(n) reaches its peak value of 3? What is the minimum Fs suitable for this task?


Problem 4:

2.1 A discrete-time signal x(n) is defined as

x(n)={1+n3,−3≤n≤−11,0≤n≤30,elsewhere

(a) Determine its values and sketch the signal x(n).
(b) Sketch the signals that result if we:
(1) First fold x(n) and then delay the resulting signal by four samples.
(2) First delay x(n) by four samples and then fold the resulting signal.
(c) Sketch the signal x(−n+4).
(d) Compare the results in parts (b) and (c) and derive a rule for obtaining the signal x(−n+k) from x(n).
(e) Can you express the signal x(n) in terms of signals δ(n) and u(n)?


Problem 5:

2.5 Show that the energy (power) of a real-valued energy (power) signal is equal to the sum of the energies (powers) of its even and odd components.


Problem 6:

2.10 The following input-output pairs have been observed during the operation of a time-invariant system:

x1(n)=[1,0,2]→Ty1(n)=[0,1,2]x2(n)=[0,0,3]→Ty2(n)=[0,1,0,2]x3(n)=[0,0,0,1]→Ty3(n)=[1,2,1]

Can you draw any conclusions regarding the linearity of the system? What is the impulse response of the system?


Problem 7:

2.21 Compute the convolution y(n)=x(n)∗h(n) of the following pairs of signals.
(a) x(n)=anu(n),h(n)=bnu(n) when a≠b and when a=b

x(n)={1,n=−2,0,12,n=−10,elsewhereh(n)=δ(n)−δ(n−1)+δ(n−4)+δ(n−5)


Problem 8:

2.23 Express the output y(n) of a linear time-invariant (LTI) system with impulse response h(n) in terms of its step response s(n)=h(n)∗u(n) and the input x(n).


Problem 9:

  1. (a) Let x[n] and y[n] be real-valued sequences both of which are even-symmetric: x[n]=x[−n] and y[n]=y[−n]. Under these conditions, prove that rxy[ℓ]=ryx[ℓ] for all .

  2. (b) Express the autocorrelation sequence rzz[ℓ] for the complex-valued signal z[n]=x[n]+jy[n] where x[n] and y[n] are real-valued sequences, in terms of rxx[ℓ]rxy[ℓ]ryx[ℓ], and ryy[ℓ].


MATLAB Exercises:

Please submit your MATLAB script source code along with any necessary plots and discussion.

P2.8 The operation of signal dilation (or decimation or down-sampling) is defined by

y(n)=x(nM)

in which the sequence x(n) is down-sampled by an integer factor M. For example, if

x(n)={…,−2,4,3,−6,5,−1,8,…}

then the down-sampled sequences by a factor 2 are given by

y(n)={…,−2,3,5,8,…}

  1. Develop a MATLAB function dnsample that has the form

    matlab
    function [y,m] = dnsample(x,n,M)
    % Downsample sequence x(n) by a factor M to obtain y(m)

    to implement the above operation. Use the indexing mechanism of MATLAB with careful attention to the origin of the time axis n=0.

  2. Generate x(n)=sin⁡(0.125πn),−50≤n≤50. Decimate x(n) by a factor of 4 to generate y(n). Plot both x(n) and y(n) using subplot and comment on the results.

  3. Repeat the above using x(n)=sin⁡(0.5πn),−50≤n≤50. Qualitatively discuss the effect of down-sampling on signals.

P2.16 Let x(n)=(0.8)nu(n)h(n)=(−0.9)nu(n), and y(n)=h(n)∗x(n). Use 3 columns and 1 row of subplots for the following parts.

  1. Determine y(n) analytically. Plot first 51 samples of y(n) using the stem function.

  2. Truncate x(n) and h(n) to 26 samples. Use conv function to compute y(n). Plot y(n) using the stem function. Compare your results with those of part 1.

  3. Using the filter function, determine the first 51 samples of x(n)∗h(n). Plot y(n) using the stem function. Compare your results with those of parts 1 and 2.