hw2

3
Signals and Systems October 12, 2010 Sharif University of Technology CE 40-242 Dr. Hamid Reza Rabiee Date Due: Mehr 24, 1389 Homework 2 (Chapters 1 & 2) Problems 1. Consider the signal x(t) depicted in figure P1.21 on p. 60 of the text book. Sketch and carefully label the following signals. a. x(1 - t 2 ) b. x(t)[δ(t - 1 2 )+ u(t - 1)] 2. Consider the signal x[n] depicted in figure P1.22 on p. 60 of the text book. Sketch and carefully label the following signals. a. x[2 - n] b. x[2n + 1] 3. Determine and sketch the following signal and its even and odd parts. Label your sketches carefully. x(t)= u(t + 1) - u(t)+(u(t) - u(t - 1)) * (u(t) - u(t - 1)) * δ(t - 1) 4. Are the following signals periodic? If so determine their fundamental period. a. w(t) = cos( π 3 t) + cos( 2π 5 t) b. z (t) = cos( π 3 t) + cos(t) 5. A system may or may not be linear, time-invariant, memoryless, causal, or stable. Determine whether or not each of the following systems has these properties. a. y(t)= x(t + 3) - x(1 - t) b. y[n]= (-1) n x[n] if x[n] 0 2x[n] if x[n] < 0 c. y[n]= E v{x[n - 1]} 6. Consider an LTI system whose response to the signal x 1 (t) is the signal y 1 (t) where these signals are depicted below. Determine and provide a labeled sketch of the response to the input x 2 (t), which is also depicted below. t x 1 (t) -1 -1 2 1 t y 1 (t) -1 1 1 2 3 t x 2 (t) 1 1 2 -4 3 1

Upload: farhan-hussain

Post on 25-Nov-2014

93 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: HW2

Signals and Systems October 12, 2010Sharif University of Technology CE 40-242Dr. Hamid Reza Rabiee

Date Due: Mehr 24, 1389

Homework 2 (Chapters 1 & 2)

Problems

1. Consider the signal x(t) depicted in figure P1.21 on p. 60 of the text book. Sketch and carefullylabel the following signals.

a. x(1− t2)

b. x(t)[δ(t− 12) + u(t− 1)]

2. Consider the signal x[n] depicted in figure P1.22 on p. 60 of the text book. Sketch and carefullylabel the following signals.

a. x[2− n]

b. x[2n+ 1]

3. Determine and sketch the following signal and its even and odd parts. Label your sketchescarefully.x(t) = u(t+ 1)− u(t) + (u(t)− u(t− 1)) ∗ (u(t)− u(t− 1)) ∗ δ(t− 1)

4. Are the following signals periodic? If so determine their fundamental period.

a. w(t) = cos(π3 t) + cos(2π5 t)

b. z(t) = cos(π3 t) + cos(t)

5. A system may or may not be linear, time-invariant, memoryless, causal, or stable. Determinewhether or not each of the following systems has these properties.

a. y(t) = x(t+ 3)− x(1− t)

b. y[n] =

{(−1)nx[n] if x[n] ≥ 0

2x[n] if x[n] < 0

c. y[n] = Ev{x[n− 1]}

6. Consider an LTI system whose response to the signal x1(t) is the signal y1(t) where these signalsare depicted below. Determine and provide a labeled sketch of the response to the input x2(t),which is also depicted below.

- t

6x1(t)

−1

−1

2

1- t

6y1(t)

���

−1

1

AAAAA

1

2

���

3

- t

6x2(t)

1

12

−4

3

1

Page 2: HW2

7. Compute the convolution sum y[n] = x[n] ∗ h[n] for each of the following pairs of signals.(P 2.21 b,c p. 141)

a. x[n] = h[n] = αnu[n]

b. x[n] = (−12)nu[n− 4], h[n] = 4nu[2− n]

8. Compute the convolution y(t) = x(t) ∗ h(t) for each of the following pairs of signals.

a. x(t) = h(t) = e−αtu(t)

b. x(t) = x1(t) (from Prob. 6), h(t) = (u(t)− u(t− 1)) ∗ (u(t)− u(t− 1))

9. The following are the impulse responses of LTI systems. Determine whether each system iscausal and/or stable. Justify your answers. (P 2.28 e,g and 2.29 e,f )

a. h[n] = (−12)nu[n] + (1.01)nu[n− 1]

b. h[n] = n(13)nu[n− 1]

c. h(t) = e−6|t|

d. h(t) = te−tu(t)

10. P 2.40 p. 148

11. P 2.47 p. 152

12. P 2.64 a,b,d p. 166

Practical Assignment

1. Define the MATLAB vector nx to be the time indices −3 ≤ n ≤ 7 and the MATLAB vector x

to be the values of the signal x[n] at those samples, where x[n] is given by

x[n] =

2, n = 0,1, n = 2,−1, n = 3,3, n = 4,0, otherwise

If you define these vectors correctly you should be able to plot this discrete-time sequence usingstem(nx,x). Now plot x[n− 2] and x[−n+ 1].

2. Consider the impulse response h[n] = δ[n + 1] + δ[n − 1] and the input x[n] = δ[n] − 3δ[n − 2].In MATLAB define the vectors h and x corresponding to these sequences. Use conv (read helpfor conv: help conv) to compute the output signal y[n]. Determine a vector of time indicescorresponding to y and store those in the vector ny. Plot y[n] as a function of n using thecommand stem(ny,y).

3. Consider the impulse response h[n] and input x[n] defined below

h[n] = u[n+ 2]x[n] = (35)n−2u[n− 2]

a. Analytically compute and sketch the convolution of h[n] and x[n].

2

Page 3: HW2

b. Define a vector h in MATLAB that contains the values of h[n] for 2 ≤ n ≤ 14, and definea vector x in MATLAB that contains the values of x[n] for 0 ≤ n ≤ 24. Define vectorsnh and nx containing the corresponding time indices. Compute the convolution of thesetwo finite-length vectors using y=conv(x,h). Compute the vector of time indices for y andstore that in ny. Plot y using the stem command. Note that since the h and x vectors areshortened versions of the true signals, only a portion of the output vector will contain thetrue values of y[n]. Specify which values in the output vector y are correct and which arenot. Explain your answer.

3