Question

Solve using MATLAB(1) Consider the difference equation given follows as у(п) — — 0.9у(п - 1) — 0.81у(n — 2) + 1.62г(п) + 1.82(п — 1) + 2ar (п —

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Given difference equation,

=0.9y n 1- 0.81y n - 21.62x n1.8x n 12xn - 2 Vn

By applying Z-Transform on both sides we get

Y(z) = -0.9zY(z)- 0.8122Y(z) + 1.62X(z)1.8z 1X(z)2z2x(z)

Transfer function is given as follows

H(z) Y(z) X(z) 1.62 1.8z 2z2 10.z 0.81z

Y(z) H(z)X(z)

Now we will solve for y[n] using MATLAB

(a) MATLAB CODE:

clc
clear all
close all

syms n z
H(z) = (1.62+1.8*z^(-1)+2*z^(-2))/(1+0.9*z^(-1)+0.81*z^(-2));
x(n) = kroneckerDelta(n,1); % del[n-1]
X(z) = ztrans(x(n),n,z);    % Z-Transform of x[n]
Y(z) = H(z)*X(z);
y(n) = iztrans(Y(z),z,n);

fprintf('Output y[n]:\n')
disp(y(n))

n = -10:10;

subplot(2,1,1)   % Plot of x[n]
stem(n,x(n))
xlabel('n')
title('x[n]')

subplot(2,1,2)   % Plot of y[n]
stem(n,y(n))
xlabel('n')
title('y[n]')

OUTPUT:

Output y [n] (200*kroneckerDelta(n - 1, 0))/ (380*kroneckerDelta(n, 0))/ 729 1)^n*3^(1/2)*100^ (1 3^ (1/2)*45i)^(n - - ((-1)^

x[n] 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 10 8 8 6 -10 y[n] 2 1.5 1 0.5 10 -0.5 -1 -1.5 2 -2.5 10 10 8 4 6 2 4 -6 -8

Add a comment
Know the answer?
Add Answer to:
Solve using MATLAB (1) Consider the difference equation given follows as у(п) — — 0.9у(п -...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • follows (3) Consider the difference equation given as у(п) %3 0.75у(п — 2) + z(п) —...

    follows (3) Consider the difference equation given as у(п) %3 0.75у(п — 2) + z(п) — 2(n — 1) — z(п — 2). (a) Draw the block diagram of the above difference equation in terms of adders, multi pliers and delay blocks (b) How many multiplications and additions do we need per sample? (c) Find the output y(n) for an input x(n) = S(n). What is this response called? Is the system stable? unit-step input. (d) Find the response due...

  • matlab and comment please only need (D) In this exercise we learn how to solve constant-coefficient...

    matlab and comment please only need (D) In this exercise we learn how to solve constant-coefficient difference equation using Mat lab. Also, we investigate the response of systems to different kinds of inputs. (1) Consider the difference equation given as follows: y(n)= -0.9y(n 1)-0.81y(n 2)1.62x(n) +1.8r(n -1)+2x(n-2), n0 Find and plot r(n) and y(n) and hence find the energy of y(n) for the following cases: ( (d) a(n) r(n)r(n 25), where r(n) is the unit-ramp sequence. In this exercise we...

  • 2. Given two initial value problems, у" — р(г)у +q()у +r(x) with a <I<b,y(a) — с,1 (а) —0 (1) and у" — р(...

    2. Given two initial value problems, у" — р(г)у +q()у +r(x) with a <I<b,y(a) — с,1 (а) —0 (1) and у" — р(г)у + g(х)у with a < r <ь,y(a) — 0, and / (а) — 1 (2) [a, b) where p(x), q(z) and r(x) Show that given two solutions yı(x), y2(x) to the linear value problems above, (1) and (2), respectively, then there exists a solution y(x) to a linear boundary value problem above where y(a) %3D 0, у...

  • For the causal filter below x(п) y(n) -2j0 1 -0.8e 2j0 Write the difference equation(show the...

    For the causal filter below x(п) y(n) -2j0 1 -0.8e 2j0 Write the difference equation(show the equation clearly and define coefficients) а. b. Give and plot the frequency response magnitude (show the equation clearly) Compute and plot the impulse response using MATLAB Use MATLAB to determine steady state response due to x(n)=u(n) c. d. Write a MATLAB program to compute and plot the frequency response of the overall system. Give plots in dB and the program e. For the causal...

  • Let u be the solution to the initial boundary value problem for the Heat Equation, tE...

    Let u be the solution to the initial boundary value problem for the Heat Equation, tE (0, o0), т€ (0, 3)%; дди(t, г) — 4 0?и(t, a), with initial condition E0, , u(0, x) f(x) 3 and with boundary conditions д,u(t, 3) — 0. и(t,0) — 0, Find the solution u using the expansion и(t, 2) 3D У с, чп (t) w,(m), n-1 with the normalization conditions Vn (0) 1, 1. Wn _ (2n 1) a. (3/10) Find the functions...

  • MATLAB PLEASE MATLAB PLEASE 9. Consider the following discrete-time exponential signal r(n) 75(-0.95)"u(n-3) (a)...

    MATLAB PLEASE MATLAB PLEASE 9. Consider the following discrete-time exponential signal r(n) 75(-0.95)"u(n-3) (a) Plot r(n) over the range (b) Find the sum of the sequence for the above range. Hence, verify the result using the n0,1,2..,20. closed form. (c) Determine the sum of the sequence r(n) over the entire range of integers, i.e. n0,1,2,.o. (d) Find the energy of the sequence x(n) 9. Consider the following discrete-time exponential signal r(n) 75(-0.95)"u(n-3) (a) Plot r(n) over the range (b) Find...

  • matlab please matlab please (4) Consider the system described by the following difference equation y(n)1.77y(n-1)-0.81y(n 2)a(n)-...

    matlab please matlab please (4) Consider the system described by the following difference equation y(n)1.77y(n-1)-0.81y(n 2)a(n)- 0.5(n -1) (a) Assuming a unit-step input, and using a long enough section of the input constant output y(n) is observed for large n, hence plot the output and determine the value of this constant called G so that a Note: G, y(n) for n0o. (b) Determine and plot the transient response given by: n(n) = y(n)- Go (c) Find the energy of the...

  • Let u be the solution to the initial boundary value problem for the Heat Equation u(t,...

    Let u be the solution to the initial boundary value problem for the Heat Equation u(t, x) 4ut, x) te (0, o0), т€ (0, 3)%; with initial condition 2. f(x) u(0, x) 3 0. and with boundary conditions ди(t, 0) — 0, и(t, 3) — 0. Find the solution u using the expansion u(t, a) "(2)"п (?)"а " п-1 with the normalization conditions Vn (0) 1, wn(0) = 1 a. (3/10) Find the functions wn. with index n > 1....

  • (5) For the system described by the following difference equation y(n)= 0.9051y(n 1) 0.598y(n 2) -0.29y(n...

    (5) For the system described by the following difference equation y(n)= 0.9051y(n 1) 0.598y(n 2) -0.29y(n 3) 0.1958y(n - 4) +0.207r(n)0.413r(n 2)+0.207a(n - 4) (a) Plot the magnitude and phase responses of the above system. What is the type of this filter? (b) (b) Find and plot the response of the system to the input signal given by /6)sin(w2n +T /4) u(n), where w 0.25m and ws 0.45m a(n) 4cos(win -T = (c) Determine the steady-state output and hence find...

  • Given the difference equation, y(n) -y(n-2)-x(n);n 2 y(-1) 1, y(-2)0, and the input x(n) a) yh (n...

    Please be neat and show all work. thank you. Given the difference equation, y(n) -y(n-2)-x(n);n 2 y(-1) 1, y(-2)0, and the input x(n) a) yh (n), p (n) and hence y (n) b) yzi (n), ½,( ) 1. 0, and the initial conditions as u(n), determine n) and hence v n Given the difference equation, y(n) -y(n-2)-x(n);n 2 y(-1) 1, y(-2)0, and the input x(n) a) yh (n), p (n) and hence y (n) b) yzi (n), ½,( ) 1....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT