Docsity

ECE 130A Homework 1: Signal Analysis and Processing, Assignments of Linguistics

Toggle sidebar
bg1
ECE 130A: Signal Analysis and Processing Prof. Michael Liebling
Fall 2008 TAs: Jingning Han, Kumar Viswanatha
Distribution: Monday, 29 September 2008 Electrical & Computer Engineering Dept.
Homework Due: Tuesday, 7 October, 5:00PM University of California, Santa Barbara
Homework 1
Problem 1: Complex Numbers Review (15 points) Let z0be a complex number with polar coordinates
(r0,θ0) and Cartesian coordinates (x0,y0). Determine expressions for the Cartesian coordinates of the fol-
lowing complex numbers in terms of r0and θ0. Plot the points z0,z1=r0e−jθ0,z2=r0, and z3=r0e−j (θ0+π)
in the complex plane for:
(a) r0=2 and θ0=π/4 (b) r0=2 and θ0=π/2 (c) r0=2 and θ0=0
Problem 2: Complex Numbers Review (15 points) Express each of the following complex numbers in
polar form, and plot them in the complex plane, indicating the magnitude and angle of each number:
(a) 2(b) 2+3j (c) ¡1−jp3¢3
Problem 3: Time-Averaged Energy and Power (15 points) Determine the values of P∞and E∞for each
of the following signals:
(a) x1(t)=e−2tu(t)(b) x2(t)=ej(2t+π/4) (c) x3(t)=cos(t).
Problem 4: Periodic Signals (15 points) Determine whether or not each of the following continuous-
time signals is periodic. If the signal is periodic, determine its fundamental period.
(a) x1(t)=3cos(4t+π/3) (b) x2(t)=ej(πt−1) (c) x3(t)=[cos(2t−π/3)]2.
Problem 5: Transformation of Independent Variables (20
points)
A continuous-time signal x(t) is shown on the right.
Sketch and label carefully each of the following signals:
(a) x(t−1)
(b) x(2 −t)
(c) x(2t+1)
(d) [x(t)+x(−t)]u(t)
-2 -1 0 1 2
-1
-2
1
2
t
x(t)
Problem 6: Plotting with Matlab (10 points) Using Matlab, plot the function
x(t)=(2e−2tif −1≤t≤3
0 otherwise
Attach the plot and your Matlab code to your homework.
Hint: Create a vector tthat contains the time values between -2 and 4, with a sampling interval of 0.01.
Create a vector xthat contains the values of x(t) at the samples contained in vector t. Finally, use the
command plot(t,x) to plot the function.
Problem 7: Analytical and Numerical Integration (10 points) Let y(t)=et+1.
(a) Use Matlab to numerically compute the integral
Z∞
−∞
x(t)y(t)dt
where x(t) is defined as in Problem 6.
(b) Also compute the integral analytically, and compare with the result obtained in (a).

Partial preview of the text

Download ECE 130A Homework 1: Signal Analysis and Processing and more Assignments Linguistics in PDF only on Docsity!

ECE 130A: Signal Analysis and Processing Prof. Michael Liebling Fall 2008 TAs: Jingning Han, Kumar Viswanatha Distribution: Monday, 29 September 2008 Electrical & Computer Engineering Dept. Homework Due: Tuesday, 7 October, 5:00PM University of California, Santa Barbara

Homework 1

Problem 1: Complex Numbers Review (15 points) Let z 0 be a complex number with polar coordinates ( r 0 , θ 0 ) and Cartesian coordinates ( x 0 , y 0 ). Determine expressions for the Cartesian coordinates of the fol- lowing complex numbers in terms of r 0 and θ 0. Plot the points z 0 , z 1 = r 0 e−j^ θ^0 , z 2 = r 0 , and z 3 = r 0 e−j ( θ^0 + π ) in the complex plane for: (a) r 0 = 2 and θ 0 = π /4 (b) r 0 = 2 and θ 0 = π /2 (c) r 0 = 2 and θ 0 = 0

Problem 2: Complex Numbers Review (15 points) Express each of the following complex numbers in polar form, and plot them in the complex plane, indicating the magnitude and angle of each number: (a) 2 (b) 2 + 3j (c)

1 − j

p 3

Problem 3: Time-Averaged Energy and Power (15 points) Determine the values of P ∞ and E ∞ for each of the following signals: (a) x 1 ( t ) = e−^2 t^ u ( t ) (b) x 2 ( t ) = ej(2 t^ + π /4)^ (c) x 3 ( t ) = cos( t ).

Problem 4: Periodic Signals (15 points) Determine whether or not each of the following continuous- time signals is periodic. If the signal is periodic, determine its fundamental period. (a) x 1 ( t ) = 3 cos(4 t + π /3) (b) x 2 ( t ) = ej( πt^ −1)^ (c) x 3 ( t ) = [cos(2 t − π /3)]^2. Problem 5: Transformation of Independent Variables ( points) A continuous-time signal x ( t ) is shown on the right. Sketch and label carefully each of the following signals: (a) x ( t − 1) (b) x (2 − t ) (c) x (2 t + 1) (d) [ x ( t ) + x (− t )] u ( t ) -2 -1 0 1 2

1

2

t

x ( t )

Problem 6: Plotting with Matlab (10 points) Using Matlab, plot the function

x ( t ) =

2e−^2 t^ if − 1 ≤ t ≤ 3 0 otherwise

Attach the plot and your Matlab code to your homework.

Hint: Create a vector t that contains the time values between -2 and 4, with a sampling interval of 0.01.

Create a vector x that contains the values of x ( t ) at the samples contained in vector t. Finally, use the

command plot(t,x) to plot the function.

Problem 7: Analytical and Numerical Integration (10 points) Let y ( t ) = e t^ +^1. (a) Use Matlab to numerically compute the integral ∫ (^) ∞

−∞

x ( t ) y ( t )d t

where x ( t ) is defined as in Problem 6. (b) Also compute the integral analytically, and compare with the result obtained in (a).