Assignment 2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

ASSIGNMENT 2

1.A linear time invariant system has impulse response h[n] = u[n]. Determine the response of this system input x[n] shown in the figure below and described as

, { Where

2.Which of the following discrete time functions could be eigenfunctions of any stable LTI System? (a) (b) (c) (d) (e) 3. For each of the following systems, determine whether the system is (1) stable, (2) causal, (3) linear, and (4) time invariant. (a) ( , -) ( , -) ( , , , , - ) , , -

(b) ( , -) (c) (d) ( , -)

4. Consider the difference equation , , , , -

(a) Determine the general form of the homogeneous solution to this equation. (b) Both a causal and an anti-causal LTI system are characterized by the given difference equation. Find the impulse responses of the two systems. (c) Show that the causal LTI system is stable and the anti-causal LTI system is unstable. (d) Find a particular solution to the difference equation when , 5. A linear time-invariant system has impulse response , , -. . / , -

(a) Determine , -, the response of the system to the input , -= . / (b) Use the result of part(a) to help to determine , -, the response of the system to the input , -= ( ). (c) Determine , -, the response of the system to the input (d) Compare , - with , - for large n . 6. Consider the system shown in Figure (a) Determine its impulse response ( ). (b) Show that ( ) is equal to the convolution of following two signals. ( ) ( ) (( ( ) ( ) ) , -. ) , -=
. /

, -.

7 Consider the system in figure with h(n) = anu(n), -1<a<1. Determine the response y(n) of the system to the excitation x(n)= u(n+5) - u(n-10)

8 Compute the zero-state response of the system described by the difference equation y(n) + y(n-1) = x(n) + 2x(n-2) to the input x(n)= {1,2,3,4,2,1}

by solving the difference equation recursively. 9.Two discrete- time systems 1 and 2 are connected in cascade to form a new system as shown in fig. Prove or disprove the following statements. a) If 1 and 2 are linear, then is linear (i.e. the cascade connection of two linear system is linear). b) If 1 and 2 are time invariant, then is time invariant. c) If 1 and 2 are causal, then is causal. d) If 1 and 2 are linear and time invariant, the same holds for . e) If 1 and 2 are linear and time variant, then interchanging their order does not change the system.

f) As in part (e) except that 1 and 2 are now time varying. (Hint: Use an example.) g) If 1 and 2 are nonlinear, then is nonlinear. h) If 1 and 2 are stable, then is stable. i) Show by an example that the inverse of parts (c) and (h) do not hold in general.

10. Consider a system with impulse response

( ( ) {

Determine the input x(n) for 0 n 8 that will generate the output sequence y(n)= {1 2 2 5 3 3 3 2 1 0 ..}

MATLAB PROBLEM
1.When the sequences x(n) and h(n) are of finite duration linear convolution and , respectively, then their

can also be implemented using matrix-vector multiplication. If the elements of y(n) and x(n) are arranged in the column vectors x and y respectively, then from the above equationwe obtain y = Hx

where linear shifts in h(n-k) for n = 0,,

-1 are arranged as rows in the matrix H. This matrix

has an interesting structure and is called a Toeplitz matrix. To investigate this matrix, consider the sequences x(n) =

{1,2,3,4}

and h(n) =

{3,2,1}

a. Determine the linear convolution y(n) = h(n) * x(n) b. Express x(n) as a 4 x 1 column vector x and y(n) as a 6 x 1 column vector y. Now determine the 6 x 4 matrix H so that y = Hx. c. Characterize the matrix H. From this characterization can you give a definition of a Toeplitz matrix? How does this definition compare with that of the time invariance? d. What can you say about the first row and first column of H? 2. MATLAB provides a function called toeplitz to generate a Toeplitz matrix, given the first row and first column. a. Using this function and your answer to 2.13 part(d), develop an alternate MATLAB function to implement linear convolution. The format of the function should be function [y , H] = conv_tp(h , x) % Linear convolution using Toeplitz matrix % --------------------------------------------------% [y , H] = conv_tp(h , x) % y = output sequence in column vector form % H = Toeplitz matrix corresponding to sequence h so that y = Hx. % h = impulse response sequence in column vector form % x = input sequence in column vector form b. Verify your function on the sequences given in the problem 2.13.
3. The operation of signal dilation (or decimation or down-sampling) is defined by

( )

In which the signal ( ) is down-sampled by an integer factor M. For example, if ( ) * +

then the down-sampled sequences by a factor 2 are given by ( ) * +

a. Develop a MATLAB function dnsample that has the form function y = dnsample(x,M) to implement the above operation. Use the indexing mechanism of MATLAB with careful attention to the origin of the time axis n=0. b. Generate ( ) ( ) . Decimate ( ) by a factor of 4 to generate

( ). Plot both ( ) and ( ) using subplot and comment on the results. c. Repeat the above using ( ) of down-sampling on signals. 4.The complex exponential sequence the normalised frequency integers. a. Prove the above result. b. Generate and plot ( ) Is this sequence periodic? If it is, what is the or the sinusoidal sequence ( ) are periodic if ( ) . Qualitatively discuss the effect

is a rational number; that is,

, where K and N are

fundamental period? From the examination of the plot, what interpretation can you give to the intergers K and N above? c. Generate and plot ( ) . Is this sequence periodic? What do you

conclude from the plot? If necessary, examine the values of the sequence in MATLAB to arrive at your answer. 5 Let ( ) ( ) ( )

a. Determine ( )

( ) analytically. ( ) ( ). Compare your results

b. Using the filter function, determine the first 50 samples of with those of part a.

You might also like