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')
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 MATLAB to find and plot x(0=x:@*.x2(t), where * denotes co...
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 MATLAB to find and plot x(0=x:@*.x2(t), where * denotes convolution. 3. Find x(t)=x;()*X2(1) by hand using Laplace transforms. 4. Plot the result of part 3 in MATLAB and compare it to that found in part 2. 2) Given the transfer function shown below, do the following: 1. Find the system's impulse response and plot it using MATLAB 2. Repeat...
1) Given the functions xi()-tu()-tu(t-I) and xz()-10e "u(), do the following: Find x()-x(0)*xz() by hand using Laplace transforms. 1) Given the functions xi()-tu()-tu(t-I) and xz()-10e "u(), do the following: Find x()-x(0)*xz() by hand using Laplace transforms.
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(t) rect(t/4) 28 (t 1) 36(t - 3)
Please solve it in MATLAB 6) Interpolation and plot: y=x*; x=0:5; a) Interpolate: x1= 1.5; x2=2.5; x3=3.5 b) Plot x and y and label axis. 7)- A= [1,2;3,4); B= [5,6;7,8] Using MATLAB find the following: A+B; A-B; AB, A/B, A-1,B-1, A.B, A./B 8). Using MATLAB: F(x) = y=x+- 2x2 + 3x – 4 a) find the roots of the polynomial f(x) b) find the integral of the polynomial f(x) c) find the SS(x)dx.
X(s) U(s) s2+ 10s+625 625 b. Plot/find the time response of this system using MATLAB when subjected to the input signal in Figure 2. Assume t -O, t2 -10-9, and A - 10 Hint: What can the input signal be approximated as? Use the approximation. Plot the response for at least 1 second. 1) Provide the plot. You do not need to print an answer to the hint. 0 Figure 2. Input u(t) c. Redo part b using the transfer...
Problem 1: Let y()- r(t+2)-r(t+1)+r(t)-r(t-1)-u(t-1)-r(t-2)+r(t-3), where r(t) is the ramp function. a) plot y(t) b) plot y'() c) Plot y(2t-3) d) calculate the energy of y(t) note: r(t) = t for t 0 and 0 for t < 0 Problem 2: Let x(t)s u(t)-u(t-2) and y(t) = t[u(t)-u(t-1)] a) b) plot x(t) and y(t) evaluate graphically and plot z(t) = x(t) * y(t) Problem 3: An LTI system has the impulse response h(t) = 5e-tu(t)-16e-2tu(t) + 13e-3t u(t) The input...
b) Find x(t)= x1(t) * x2(t) using the convolution integral. Write the result by region Show all regions and plots in your calculations. eros 3 x Answer: x(t)= bnien l vo s 1Swans ls AVSV meldoy C) Repeat part b) using Laplace. Write the result in terms of delayed unit steps and verify that it is an equivalent result pnwlle Answer: x(t)= ) 3et-1)u(t) 6(t-2) = c) 3e--1u(t)o()= d) 3e--1)u(t)-8(1) = Hint: Is not the same multiplication by a delayed...
Question 5 An LTI system has an input signal given by x(t) = e-tu(t). The output of the system is measured and found out to be given by y(t) = e-tu (t) + e-t+1 u(t-1). Find the system transfer function, H(s) 4 marks a. b. Find the system impulse response, h(t) 4 marks c. Describe in words what is the functionality of this svstem (i.e., what does it do on the inputs sigmal to produce the output simal?). [2 marks]
1. The signal x(t)- expl-a)u(t) is passed as the input to a system with impulse response h(t) -sin(2t)/(7t (a) Find the Fourier transform Y() of the output (b) For what value of α does the energy in the output signal equal one-half the input signal energy? Hint: use the duality property of Fourier Transform to obtain H(a
Consider the system:y[n]-0.5y[n-1]-0.25y[n-2]=x[n]+2x[n-1]+x[n-2] • Plot, using MATLAB, the impulse and step responses of the system. Highlight the response characteristics in your plots • Assume initial conditions y(-1) = 1, y(-2) = 0 and that the input signal to the system is a discrete-time unit step. Determine the formula for the Z-transform of the solution, Y(z). Subsequently, determine the formula for the solution, y[n], itself.