Question

rn] h[n], let rn] (3)un] and h[n ()un]: Problem 1. For a system described by yln] _ Compute yn] analytically. Plot yln] in M

Digital Signal Processing

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

а- х П) form to xm v hM apply 4 Н(2) - 2- X х М) * h() У — у@- X @). HO - Э ) В А У у С 0.714 3 Уе) 7143 - В - -7143 -0-143 2

MATLAB code is given below in bold letters.

clc;
close all;
clear all;


% define the range of n
n = -5:15;

% define the signal y[n] from analytical solution
y = (-0.7143*(1/3).^n + 1.7143*(4/5).^n).*(n>=0);

% plot the signal y[n]
figure;
stem(n,y);grid on;
xlabel('n');title('y[n] analytical solution');

% Question b

% define x and h as follows
x = ((1/3).^n) .*(n>=0);
h = ((4/5).^n) .*(n>=0);

% now compute y[n] using conv command as follows
y = conv(x,h);

% Now plot the signal y[n]
figure;
stem(2*min(n):2*max(n),y);grid on;
xlabel('n');title('y[n] using MATLAB conv function ');
xlim([-5 15]);

y[n] analytical solution 1.4 1.2 0.8 0.6 0.4 0.2 -5 10 15 G L C GYn using MATLAB conv function 1.4 1.2 0.8 0.6 0.4 0.2 0 -5 10 15 G L C

It is observed that both the analytical solution and the MATLAB conv function solution are the same.


Add a comment
Know the answer?
Add Answer to:
Digital Signal Processing rn] h[n], let rn] (3)un] and h[n ()"un]: Problem 1. For a system...
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
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