Vous êtes sur la page 1sur 3

ENEE 222 Discrete Time Signal Processing

Spring 2012 Problem Set 1 Due February 1


Problem 1. Start MATLAB both from the university computer system and remotely using the Virtual Computer Lab website: http://www.it.umd.edu/vcl. For the latter, you will have to download and install the Cytrix plugin on your computer. The instructions are on the website. Using the MATLAB diary command, capture some lines from your MATLAB sessions and submit them as the solution to this problem. Run the MATLAB demo, and explore some of the Signal Processing Toolbox and other toolboxes that interest you. Type help at the MATLAB prompt to see a list of available toolboxes. Problem 2. Consider the sinusoid x (t ) = A cos ( t + t is in seconds. It is known that

) , where A > 0 and < < . Time

x(t ) > 3.0 for exactly 40% of each period;


it takes 0.45 seconds for the value of the sinusoid to drop from 3.0 to -3.0; the first peak of the sinusoid in positive time occurs at t = 0.60 (seconds).

(i) Determine the amplitude A. (ii) Determine the period and angular frequency of x(t). (iii) Determine the initial phase of x(t) as a fraction of . (iv) Write MATLAB code which computes and plots two periods of x(t) starting at t = 0, using 100 uniformly spaced samples per period (i.e., a total of 200 samples). Include a printout of the code and a plot of the result with your homework.

four decimal places. (vii) (4 pts.) Determine the only real values a, b, c and d so that the equation z 4 + az 3 + bz 2 + cz + d = 0 has both z1 and z2 as roots.

Problem 3.

Problem 1B Do not use a calculator for this problem. Express your answers using square roots and/or fractional multiples of . Throughout this problem, let p u = 1 + j 3 and v= p 3j

(i) (2 pts.) Express each number in the form rej . Plot both numbers on the complex plane. (ii) (4 pts.) Let a be a real scaling factor. Determine the value(s) of a such that
p u a = 2 2 v

(iii) (5 pts.) Determine the real or complex constant c such that v is a root of z6 c = 0 Plot all roots of this equation on the complex plane. (iv) (3 pts.) Sketch the circle described by the equation |z u| = 2 Determine the 241 02 intersection (if any) ofASSIGNMENT 1two axes, real and imaginary. ENEE points of HOMEWORK this circle and the Due Tue 09/14
Problem 1A Problem 4. Consider the complex numbers z1 = 3 + j and z2 = 5 + 5j

(i) (2 pts.) Plot both numbers on the complex plane. (ii) (2 pts.) Evaluate |zi | and 6 zi for both values of i (i = 1, 2). (iii) (2 pts.) Without using a calculator, show that 6 z1 and 6 (z1 +z2 ) dier by an integer multiple of /2.
(iv) (4 pts.) Express each of z1 + 2z2 and z1 /z2 in both Cartesian and polar form. 4 6 (v) (3 pts.) If v = z1 z2 , determine |v| and 6 v. Also, obtain v in Cartesian form.

3000 (vi) (3 pts.) If w = z1 , determine 6 w in the range [0, 2). Your answer should be correct to four decimal places.

(vii) (4 pts.) Determine the only real values a, b, c and d so that the equation z 4 + az 3 + bz 2 + cz + d = 0 has both z1 and z2 as roots. Problem 1B Problem 5. We will frequently use random numbers in problems and projects. Test the following Do not use a MATLAB commands in calculator for this problem. Express your answers using square roots and/or fractional multiples of . Throughout this problem, let >>close all;n=10^6;x=randn(n,1);hist(x,100);grid (note the randn) p p u = 1 + j 3 and v = 3j (ii) (4 pts.) Let a be a real scaling factor. Determine the value(s) of a such that 2 p u a = 2 2 v (iii) (5 pts.) Determine the real or complex constant c such that v is a root of
>>close all;n=10^6;x=rand(n,1);hist(x,100);grid

Consider the last line.each number in the with various values of the coefficients a and b. (i) (2 pts.) Express Try the following form rej . Plot both numbers on the complex plane.

>>close all;n=10^7;x=a*randn(n,1)+b;hist(x,1000);grid

Explain what these commands say about the random number functions rand, and randn. What is the hist function?

Vous aimerez peut-être aussi