Please answer this question using MATLAB. Thanks, sir.
Using MATLAB, plot the basic signals of the unit step and ramp functions which comprise the plot shown in the figure below. Prove that the mathematical equation is correct to represent the signal as shown.
12
>t
3
xA = 2u(t) - u(t-1) - r(t) + r(t-2)