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
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)...
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...
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...
Question 3) Given a system with an impulse response of: h(t) = te-2t(U(t)-U(t-4)). Use MATLAB to compute the output of the system with an input of: x(t)-3(U(t -2)-U(t - 5) Question 3) Given a system with an impulse response of: h(t) = te-2t(U(t)-U(t-4)). Use MATLAB to compute the output of the system with an input of: x(t)-3(U(t -2)-U(t - 5)
If u(t) = (sin(2t), cos(3), t) and v(t) = (t cos(3), sin(2t)), use Formula 4 of this theorem to find lu(e) • vce). dt
In MATLAB Use symbolic math to solve and plot Laplace Problem 3.5. Problem 3.5 x1(t) 16e2t cos4t u(t x2(t) 20te2t sin4t u(t) x3(t) 10e 3t ut-4) a. b. C. In MATLAB Use symbolic math to solve and plot Laplace Problem 3.5. Problem 3.5 x1(t) 16e2t cos4t u(t x2(t) 20te2t sin4t u(t) x3(t) 10e 3t ut-4) a. b. C.
- y(t)=r (+)-r(t-1)-rt 3)- u(4-3) +u4-4) where r() is the ramp function. a plot y(t) b) plot z(t) c) plot y' (t) d calculate the energy of y(t) r(t)=t for t o O for tco
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...
MATLAB %% T = 1; N = 11; np = 2; dt = 0.001; tmax = np*T; t = -tmax:dt:tmax; %% Function 1 %the following code was used to create the x(t) function xrange = floor((T/dt)/15); x1 = linspace(0,1,xrange); x2 = x1(end-1:-1:1); x3 = linspace(0,2,2*xrange); x4 = x3(end-1:-1:1); x5 = zeros(1,xrange); x6 = x1; x7 = 2*ones(1,xrange); x8 = 1+x2; x9 = -0.5*ones(1,xrange); x10 = x1/2-0.5; xtemp = [x1 x2 x3 x4 x5 x6 x7 x8 x9 x10]; ztemp =...
In MATLAB plot the following: The function is periodic, with time period 2T=2, after t=2 the same sinusoidal components repeat in the same way as when 0 st < 2. The function its expanded from one time period 27, in terms of the sinusoidal components. All sinusoidal components have frequencies which are integral multiples of the fundamental frequency. 1 1 = = = 0.5Hz to = fo = cot I am cos(womt) + b, sin(wont) m=1 rad wo = 2nfo...
10 sin 2t if 0 <t< 4. (a) Let r(t) if t > T Show that the Laplace transform of r(t) is L(r) 20(1 - e - e-78) 32 + 4 (b) Find the inverse Laplace transform of each of the following functions: s – 3 S2 + 2s + 2 20 ii. (52 + 4)(52 + 25 + 2) 20e-S ini. (s2 + 4)(52 + 25 + 2) (c) Solve the following initial value problem for a damped mass-spring...