Question
Matlab help
1) Given the functions x1()= tu()-tuft-1) and X2(t)=10e-5,11(), do the following: 1. Plotx,(t) and x2(0) using MATLAB 2. Use
2) Given the transfer function shown below, do the following: 1. Find the systems impulse response and plot it using MATLAB
0 0
Add a comment Improve this question Transcribed image text
Answer #1

I-So 45 - loQ Pactsal rackon expan nt 10 to 2 SS5 St a. 스10

S 2

MATLAB:


clc;clear all;close all;
t=0:0.01:5
x1=(t.*(t>=0))-(t.*(t>=1))
x2=10*(exp(-5*t))
y=conv(x1,x2)
m=0:0.01:10
subplot(221)
plot(t,x1,'r','linewidth',3)
xlabel('t');ylabel('x1(t)');title('x1(t)')

subplot(222)
plot(t,x2,'b','linewidth',3)
xlabel('t');ylabel('x2(t)');title('x2(t)')

subplot(223)
plot(m,y/100,'m','linewidth',3)
xlabel('t');ylabel('x(t)');title('x(t)=x1*x2')

%from hand calculation
t=0:0.01:10
y1=((2*t)-0.4 +(0.4*(exp(-5*t)))).*(t>=0)
y2=((2*(t-1))-0.4 +(0.4*(exp(-5*(t-1))))).*(t>=1)
y3=(-2+(2*exp(-5*(t-1)))).*(t>=1)
yy=y1-y2+y3
subplot(224)
plot(t,yy,'g','linewidth',3)
xlabel('t');ylabel('x(t)');title('x(t)=x1*x2')

x1(t) x2(t) 10 0.8 ︵ 0.6 4 0.4 0.2 2 4 3 4 x(t)-x1*x2 x(t)=x1 *x2 2 2 1.5 1.5 0.5 0.5 6 8 10 2 6 8 10 4 4

Add a comment
Know the answer?
Add Answer to:
Matlab help 1) Given the functions x1()= tu()-tuft-1) and X2(t)=10e-5,11(), do the following: 1. Plotx,(t) and...
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