Question

Given the functions below, use MATLAB to plot x2(t), x4(t/2), x6(2t) x2(t) u(sin(t)) x4(t)rt)r(t - 2) 2u(t - 4) x6 (t) 3 sgn(

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

clear all
clc
t=-5:0.01:5; % Defining time range to plot the signals
x2= heaviside(sin(pi*t));
plot(t,x2); % plotting x2
x4=t.*heaviside(t)-(t-2).*heaviside(t-2)-2*heaviside(t-4);
hold on % to retain the previous plots
plot(t,x4); % plotting x4
impulse1 = t==-1;
impulse3= t==3;
x6=3.*sign(t).*[(t/4).*heaviside(t/4)]+2.*impulse1-3.*impulse3;
hold on
plot(t,x6)
legend('x2','x4','x6')

the output obtained is

x2 3.5 0.5 0.5 C 1 -1

Add a comment
Know the answer?
Add Answer to:
Given the functions below, use MATLAB to plot x2(t), x4(t/2), x6(2t) x2(t) u(sin(t)) x4(t)rt)r(t - 2)...
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