Question

In: Computer Science

***Please solve on MATLAB:*** Consider the signal x(t) = 2−tu(t), where u(t) is the unit step...

***Please solve on MATLAB:***

Consider the signal x(t) = 2−tu(t), where u(t) is
the unit step function.

a) Plot x(t) over (−1 ≤ t ≤ 1).

b) Plot 0.5x(1 − 2t) over
(−1 ≤ t ≤ 1).

Solutions

Expert Solution

(a)

% Code to plot the signal x(t) = 2-tu(t), where u(t) is unit step function

% We will use heaviside function for unit step function

% Part (a) for -1<= t <=1

t = -1:0.1:1;

x = 2 - t.*(heaviside(t));

plot(t,x, 'linewidth', 2)

(b)

% Code to plot the signal 0.5x(1-2t) over -1<= t <=1

t = -1:0.1:1;

x = 2 - t.*(heaviside(t));

plot(t, 0.5*x.*(1 - 2.*t))

_______________________________________________________________________________

*NOTE: Drop comments for queries.


Related Solutions

Solve the following initial value problems: a) ut+xux= -tu, x is in R, t>0; u(x,0) =f(x),...
Solve the following initial value problems: a) ut+xux= -tu, x is in R, t>0; u(x,0) =f(x), x is in R. c) ut+ux=-tu, x is in R, t>0; u(x,0)=f(x), x is in R d)2ut+ux = -2u, x,t in R, t>0; u(x,t)=f(x,t) on the straight line x = t, where f is a given function.
energy and power of signals. (a) Plot the signal x(t) = e−tu(t) and determine its energy....
energy and power of signals. (a) Plot the signal x(t) = e−tu(t) and determine its energy. What is the power of x(t)? (b) How does the energy of z(t) = e−∣t∣, −∞ < t < ∞, compare to the energy of z1(t) = e−tu(t)? Carefully plot the two signals. (c) Consider the signaly(t) = sign[xi(t)] =  1 xi(t) ≥ 0 −1 xi(t) < 0 for −∞ < t < ∞,i = 1,2. Find the energy and the power of...
if the input signal is x(t)=exp[-at]u(t) and system impulse response is h(t)=u(t+2) what is the outpul...
if the input signal is x(t)=exp[-at]u(t) and system impulse response is h(t)=u(t+2) what is the outpul signal y(t) ?
Please solve the following: ut=uxx, 0<x<1, t>0 u(0,t)=0, u(1,t)=A, t>0 u(x,0)=cosx, 0<x<1
Please solve the following: ut=uxx, 0<x<1, t>0 u(0,t)=0, u(1,t)=A, t>0 u(x,0)=cosx, 0<x<1
2) Consider the Lorentz transformation that maps (x,t) into (x',t'), where t and x are both...
2) Consider the Lorentz transformation that maps (x,t) into (x',t'), where t and x are both in time units (so x is really x/c) and all speeds are in c units also. a) Show that the inverse of the Lorentz transformation at v is the same as the Lorentz transformation at -v. Why is that required? b) Show that x^2 - t^2 = x'^2 - t'^2, i.e., that x^2 - t^2 is invariant under Lorentz transformation
Solve x(y^2+U)Ux -y(x^2+U)Uy =(x^2-y^2)U, U(x,-x)=1
Solve x(y^2+U)Ux -y(x^2+U)Uy =(x^2-y^2)U, U(x,-x)=1
Consider the equation: ?̇ +2? = ?(?) with initial condition x(0) = 2 (a) If u(t)...
Consider the equation: ?̇ +2? = ?(?) with initial condition x(0) = 2 (a) If u(t) = 0, find the solution ?(?). What is ?(?) as t -> ∞? (b) If u(t) = 4+t, find the solution ?(?). What is ?(?) as t -> ∞? (c) If u(t) = ?3?, find the solution ?(?). What is ?(?) as t -> ∞? (d) If u(t) = δ(t), find the solution ?(?). What is ?(?) as t -> ∞?
Signals and systems Consider the following discrete signal x[n] = sin(π n/32) (u[n]-u[n-33]) a) Using MATLAB...
Signals and systems Consider the following discrete signal x[n] = sin(π n/32) (u[n]-u[n-33]) a) Using MATLAB only, Find the DFT using FFT algorithm, b) Plot the signal x[n], spectrum |X(ω)|^2 , and phase of X(ω). Hint: use L=512 for FFT.
Consider walks in the X-Y plane where each step is R: (x, y)→(x+1, y) or U:...
Consider walks in the X-Y plane where each step is R: (x, y)→(x+1, y) or U: (x, y)→(x, y+a), with a a positive integer. There are five walks that contain a point on the line x + y = 2, namely:  RR, RU1, U1R, U1U1, and U2. Let a_n denote the number of walks that contain a point on the line x + y = n (so a_2 = 5). Show that a_n = F_{2n}, where F_n are the Fibonacci numbers...
Use Laplace transformations to solve the following ODE for x(t): x¨(t) + 2x(t) = u˙(t) +...
Use Laplace transformations to solve the following ODE for x(t): x¨(t) + 2x(t) = u˙(t) + 3u(t) u(t) = e^−t Initial conditions x(0) = 1, x˙(0) = 0, u(0) = 0
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT