MATLAB: How to plot a multiplication of two unit step functions (denoted by u(t)) ? Function I need the plot for is : F(t) = u(t) * u(10 – t)

MATLABunit step multiplication

How to plot a multiplication of two unit step functions (denoted by u(t)) ? Function I need the plot for is : F(t) = u(t) * u(10 – t)

Best Answer

u = @(t) double(t >= 0);
v = @(t) u(t).*u(10-t);
ezplot(v,[-10,20])
WTP?