Question
Hello

Only need the answer of question 5 and 6 also with the graph.
Write MATLAB code to plot the following waveforms. Submit your code and plots in a single PDF file. 1. (8 pts) Rectangular pu
0 0
Add a comment Improve this question Transcribed image text
Answer #1

2*sgn(t-3)

sgn(t-3) 0.5 -0.5

sgn(t) NE

2e atu(t-4) 1.40-05 1.2e-05 10-05 80-06 60-06 40-06 20-06

e at * u(t)

Code


t = -5:0.1:5;
% 5 a)
plot(t,sign(t))
title('sgn(t)')

% 5 b)
figure();
plot(t,sign(t-3))
title('sgn(t-3)')

% 5 c)
figure();
plot(t,2*sign(t-3))
title('2*sgn(t-3)')

alpha = 3;
t = -5:0.1:5;

% 6 a)
plot(t,exp(-alpha*t).*(t>=0))
title('e^-at * u(t)')

% 6 b)
figure();
plot(t,2*exp(-alpha*t).*((t-4)>=0))
title('2e^-at * u(t-4)')

Add a comment
Know the answer?
Add Answer to:
Hello Only need the answer of question 5 and 6 also with the graph. Write MATLAB...
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