Question

please  I need the final answer and steps by using MATLAB and please clear answer. Find y(t) for each paired x() and hin Fig. 15.37. h(t) x(t) 0 0 h(t) x(t) 2e-T h(t) x(t) 0

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

MATLAB code is given below in bold letters.


clc;
close all;
clear all;

% Question a

% define time vector
t = 0:0.01:10; % 10 seconds of time vector

% define x
x = (t>=0)-(t>=1);

% define h
h = ((t>=0)-(t>=1)).*t + 1*(t>1);

% compute and plot the convolution
y = conv(x,h)*0.01;

% plot the response
figure;
plot(min(t):0.01:2*max(t),y,'linewidth',2);xlim([0 10]);
xlabel('time');ylabel('Amplitude');title('y(t)');
grid on;ylim([0 1.5]);

9 8 6 5 4 3 2 0 0 5 apnl!lduy


% Question b
clear all;
% define time vector
t = 0:0.01:10; % 10 seconds of time vector

% define x
x = (t>=0);

% define h
h = 2*exp(-t) ;

% compute and plot the convolution
y = conv(x,h)*0.01;

% plot the response
figure;
plot(min(t):0.01:2*max(t),y,'linewidth',2);xlim([0 10]);
xlabel('time');ylabel('Amplitude');title('y(t)');
grid on;%ylim([0 1.5]);

y(t) 2.5 2 ao 1.5 0.5 0 0 123 4 5 67 8 9 10 time

% Question c
clear all;
% define time vector
t = -10:0.01:10; % 10 seconds of time vector

% define x
x = ((t>=-1) - (t>=1));

% define h
h = ((t>=0) - (t>=1)).* t + ((t>1) - (t>=2)).*(-t+2);

% compute and plot the convolution
y = conv(x,h)*0.01;

% plot the response
figure;
plot(2*min(t):0.01:2*max(t),y,'linewidth',2);xlim([0 10]);
xlabel('time');ylabel('Amplitude');title('y(t)');
grid on;%ylim([0 1.5]);

9 8 7 6 5 4 3 2 7 1987 0 6 0 2 0, 3 0 apnl!!duy

Add a comment
Know the answer?
Add Answer to:
Please  I need the final answer and steps by using MATLAB and please clear answer.
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