Question

In: Electrical Engineering

For all the requested figures below, use a discrete time range of n = [0,50] on...

For all the requested figures below, use a discrete time range of n = [0,50] on the x-axis. Remember your script should be self-sufficient and run without any errors to receive any points.

You are given a discrete time system (1) below (same system as Homework 5(a)):

(E - 0.2)(E - 0.4)(E - 0.6) y[n] = (2 - 3E) x[n]              (1)

Question 1. Compute the impulse response h[n] of system (1) above, using the recursive solution method. You will not receive any points for using another method. Given the system input x[n] defined by equation (2) below, compute the output yr[n] to the system (1), using h[n] you have just computed and x[n], by discrete convolution. You will not receive any points for computing yr[n] using another method.

x[n] = cos( pi x n/32) u[n]                                    (2)

Display computed yr[n] together with y[n] you have computed in Homework 5(a) on the same figure. Display yr[n] in red circles (‘ro’), and y[n] in blue stars (‘b+’). You are NOT asked to display h[n], do NOT display h[n]. Do not forget to properly label and annotate your figure and follow the time range requirement set on the top of this page. You will not receive full points otherwise.

Note: Use a stem plot, with the help of the built in Matlab function “stem()” in order to properly represent a discrete signal on a figure.

Solutions

Expert Solution

Solution

a)The impulse response is calculated recursively by using the given difference equation.

b)x(n) is convolved with the impulse response which is obtained from (a) to find the system response y(n).

c)plotted the input and the output.

MATLAB:

clc;close all;clear all;
%E=delay Ey(n) means y(n-1)
n=0:1:50
b=conv(conv([1,-0.2],[1,-0.4]),[1 -0.6])%To obtain the coeffients of y(n) terms
a=[-3 2]%coefficients of x(n)
%compute Impulse response
x= (n==0)%define impulse function
y=zeros(1,length(n))
%Initial conditions
y(1)=0
y(2)=0
y(3) = 0;
x(4)=1%Initail value of del(n)
%Recursive implementation
for m=4:1:length(n)
y(m)=(-b(1)*y(m-3)-b(2)*y(m-2)-b(3)*y(m-1)+2*x(m)-3*x(m-1))/b(4)
end
h=y%h(n)

%compute yr(n)
x= cos(pi*n/32).*(n>=0)
y=conv(x,h)
m=0:1:100
subplot(211)
stem(n,x,'b')
xlabel('n')
ylabel('x(n)')
title('x(n)')

subplot(212)
stem(m,y/max(abs(y)),'m')
xlabel('n')
ylabel('y(n)')
title('y(n)')


______________________________________________________________



Related Solutions

Using the records below, provide the information requested. Figures below relate to Poppy’s Products’ inventory of...
Using the records below, provide the information requested. Figures below relate to Poppy’s Products’ inventory of t-shirts during the first quarter of 2005. On February 5, a customer purchased 900 t-shirts for $15 each. Two weeks later, Poppy’s sold 600 shirts for $14 each. NOTE: Two copies of identical information are provided below: DATE     ACTIVITY UNITS COST/UNIT   TOTAL Jan. 1    Inventory    700    $7.40    $ 5,180 Jan. 21   Purchase    800    $6.00      4,800 Feb. 10   Purchase 1,200    $6.60     7,920 Mar....
Use and provide Matlab for the following: Generate the discrete-time signal x[n] = 4 cos (2pi....
Use and provide Matlab for the following: Generate the discrete-time signal x[n] = 4 cos (2pi. 10. nT5) + 2cos(2pi. 100. nT5) + 3cos(2pi 200. nT's), with Ts0.001 sec. Display the signal in both time and frequency-domain. Assume that the 100 Hz component of x [n] is your desired signal while the other two components are noise. Design a suitable filter to extract the desired (i.e. 100 Hz) signal. Display the filter's response. Display the output signal in the frequency-domain....
Compute the unit-­pulse response h[n] for the discrete-­time system y[n + 2] - 2y[n + 1]...
Compute the unit-­pulse response h[n] for the discrete-­time system y[n + 2] - 2y[n + 1] + y[n] = x[n] (for n = 0, 1, 2, 3)
Examine the financial statements below. Use this information to answer questions 1-7. Note: All figures are...
Examine the financial statements below. Use this information to answer questions 1-7. Note: All figures are in millions of dollars. The XXX Corporation: Balance Sheet, 2018 Cash & marketable securities                $200                Accounts payable                        100 Accounts receivable                              150                Notes payable                         100 Inventories                                           250                Total current liabilities               $200     Total current assets                              $600              Long-term debt                           400                                                                                     Total liabilities                          $600 Fixed assets                                          900                                                                                     Common stock                       50                                                                                     Retained earnings                     850                                                                                         Total...
Consider the following discrete-time system: y[n] = 100 x[n] cos(0.45πn + 0.5π) (a) Determine if the...
Consider the following discrete-time system: y[n] = 100 x[n] cos(0.45πn + 0.5π) (a) Determine if the system is linear, time-invariant, causal and stable. Justify your answers. (b) Find the impulse response h[n] for the system and sketch the waveform. (c) Draw the system block diagram using adder, multiplier and delay elements.
Explain why a discrete time system is stable if its eigenvalues are all in the unit...
Explain why a discrete time system is stable if its eigenvalues are all in the unit circle. Explain why a symmetric matrix will always have real eigenvalues. Explain why a continuous time system is stable if the real part of its eigenvalues are negative.
Consider a discrete-time periodic signal x [ n ]   =   cos ( 0 . 7 πn ) (1)...
Consider a discrete-time periodic signal x [ n ]   =   cos ( 0 . 7 πn ) (1) Determine the fundamental period of x[n]. (2) Suppose x[n] is obtained by sampling the continuous-time signal  x ( t )   =   cos   ( πt ), by letting the sampling period to be T s =   0 . 7 and considering the sample values at each n. Is the Nyquist sampling conditions satisfied in this case? Explain and relate this to the answer given before. (3) Under that conditions would...
Please use the description below to calculate the values requested below, Answers must be reported correct...
Please use the description below to calculate the values requested below, Answers must be reported correct to 4 decimal places to receive credit. For statistics that cannot be reported, please respond with -99. For statistics with multiple answers, please respond with the lowest value. In the 145 years of the running of the Kentucky Derby, the overall average speed of the horses under all track conditions has been 35.9025mph. Only nine years have been run under sloppy track conditions, including...
Classify each of the following processes as discrete-time or continuous-time, and discrete-space or continuous-space. (a) The...
Classify each of the following processes as discrete-time or continuous-time, and discrete-space or continuous-space. (a) The baud rate of a modem, recorded every 60 s (b) The number of people logged into Facebook throughout the day (c) The operational state, denoted 1 or 0, of a certain machine recorded at the end of each hour (d) The noise (in dB) in an audio signal measured throughout transmission
The figures below show four circuits, with the resistances of the resistors given. In all cases,...
The figures below show four circuits, with the resistances of the resistors given. In all cases, the emf of the battery is 10 V. Rank the circuits in order of descending total current coming out of the battery. (You should be able to answer this question using what you have already learned, but if you want, feel free to build the four circuits and make measurements.)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT