Question

Use MATLAB to compute the convolution as a sum ofechoes of the input signal x[n] = cos () with the impulse response h[n]1.5un

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

n=-7:30;
x=cos(2*pi*n/5);
h=1.5*(ones(1,7));
m=length(x);
n=length(h);
X=[x,zeros(1,n)];
H=[h,zeros(1,m)];
for i=1:n+m-1
Y(i)=0;
for j=1:m
if(i-j+1>0)
Y(i)=Y(i)+X(j)*H(i-j+1);
else
end
end
end
stem(Y);
ylabel('Y[n]');
xlabel('----->n');
title('Convolution of Two Signals without conv function');

Convolution of Two Signals without conv function 1.5 0.5 0.5 -1 -2 -2.5 0 5 10 15 20 253035 40 45

Yes output is periodic,from convolution property output is periodic if atleast one of the input are periodic, here only x[n] is periodic but not h[n], So y[n] is periodic

Convolution of Two Signals without conv function 1.5 0.5 0.5 -1 -2 -2.5 0 5 10 15 20 253035 40 45

Add a comment
Know the answer?
Add Answer to:
Use MATLAB to compute the convolution as a sum ofechoes of the input signal x[n] = cos () with th...
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
  • CONVOLUTION - Questions 4 and 5 4. Consider an LTI system with an impulse response h(n)...

    CONVOLUTION - Questions 4 and 5 4. Consider an LTI system with an impulse response h(n) = [1 2 1] for 0 <n<2. If the input to the system is x(n) = u(n)-un-2) where u(n) is the unit-step, calculate the output of the system y(n) analytically. Check your answer using the "conv" function in MATLAB. 5. Consider an LTI system with an impulse response h(n) = u(n) where u(n) is the unit-step. (a) If the input to the system is...

  • QUESTION 2 (20 MARKS) (a) A continuous time signal x(t) = 3e2tu(-t) is an input to...

    QUESTION 2 (20 MARKS) (a) A continuous time signal x(t) = 3e2tu(-t) is an input to a Linear Time Invariant system of which the impulse response h(t) is shown as h(t) = { .. 12, -osts-2 elsewhere Compute the output y(t) of the system above using convolution in time domain for all values of time t. [8 marks) (b) The impulse response h[n] of an LTI system is given as a[n] = 4(0.6)”u[n] Determine if the system is stable. [3...

  • (1) For the impulse response (h(t)) and input signal (x(t)) of an LTI system shown below,...

    (1) For the impulse response (h(t)) and input signal (x(t)) of an LTI system shown below, find and plot the output response (y(t)) by integrating the convolution analytically h(t) x(t) t (s)

  • pls show all work thanks 4. If the signal X(t) = cos(0) + cos(26) + cos...

    pls show all work thanks 4. If the signal X(t) = cos(0) + cos(26) + cos (46) is the input to an LTI system whose impulse response is n(t) sinc(30) sincet), what will be the output signal y() in response to this input?

  • Signal system 8. Consider the periodic signal x(t) = cos(2nt) + cos(2nt) I. a. Find the...

    Signal system 8. Consider the periodic signal x(t) = cos(2nt) + cos(2nt) I. a. Find the Fourier series coefficients for this signal. (4 points). b. If this signal passes through a LTI system with the impulse response h(t)=e* u(t), particularly, would the output signal also be a periodic signal ? If so, what would be the Fourier coefficients of the output signal ? (4 points). c. Give the mathematical expression for the output signal y(t). (2 points).

  • The given input signal for 2.7.2 is:   x(t) = 3 cos(2 π t) + 6 sin(5 π t). Plz explain ...

    The given input signal for 2.7.2 is:   x(t) = 3 cos(2 π t) + 6 sin(5 π t).Plz explain steps.Given a causal LTI system described by the differential equation find \(H(s),\) the \(\mathrm{ROC}\) of \(H(s),\) and the impulse response \(h(t)\) of the system. Classify the system as stable/unstable. List the poles of \(H(s) .\) You should the Matlab residue command for this problem.(a) \(y^{\prime \prime \prime}+3 y^{\prime \prime}+2 y^{\prime}=x^{\prime \prime}+6 x^{\prime}+6 x\)2.7.2 The signal \(x(t)\) in the previous problem is...

  • Discrete-time convolution. Use of shift invariance for LTI systems. A discrete-time LTI system is described the...

    Discrete-time convolution. Use of shift invariance for LTI systems. A discrete-time LTI system is described the its impulse response h[n]. h[n] = (5)"u[n]. n-3 1 An input x[n] = u[n – 4) is applied. The output of the system y[n] is given by: x[r] – 54 G)" ()") un 14 The correct answer is not provided gắn] = [16(5)” – 54(5) ] n] y[n] = [16()" – 54(+)"] uſn – 4

  • Consider a causal LTI system whose input xn] and output y[n] are related by the differenoe equati...

    Consider a causal LTI system whose input xn] and output y[n] are related by the differenoe equation yn In--n] a. Find the impulse response of the system (without using any transform). (5 marks) b. Using convolution determine yin, 1f XIn = 1 un.(6 marks Consider a causal LTI system whose input xn] and output y[n] are related by the differenoe equation yn In--n] a. Find the impulse response of the system (without using any transform). (5 marks) b. Using convolution...

  • (Convolution DT) consider the following LTI system with input x[n] and output y[n]: (a) sketchbthe input...

    (Convolution DT) consider the following LTI system with input x[n] and output y[n]: (a) sketchbthe input signal x[n] = (1/2)^n(u[n])

  • please answer all questions with working out! will rate high A signal :[7] = cos( /4)0.8"...

    please answer all questions with working out! will rate high A signal :[7] = cos( /4)0.8" [rel is applied to an LTI systern and produces an output 3u[1]. What output is produced by an input airl] = 2:0[– 317 bur un 3 3un +3] 3un - 3] Allowed attempts: 1 Check Answer An LTI system has impulse response h[n] = 0.5" (n). What input : 1) will produce an output y(n) = 3(0.5)(n-Halle 1)? [n] = 68 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