Plot the following function on MATLAB
h(t) = cos(pi*t/2) -2 <= t < -1
1 + t3 -1 <= t < 0
1 0 <= t < 1
1 + sin(2*pi*t) 1 <= t < 2
0 elsewhere


%MATLAB CODE
fplot(@(t)cos(pi*t/2),[-2 -1],'b')
hold on
fplot(@(t)(1+t^3),[-1 0],'b')
hold on
fplot(@(t)1,[0 1],'b')
hold on
fplot(@(t)(1+sin(2*pi*t)),[1 2],'b')
hold off
grid on
Plot the following function on MATLAB h(t) = cos(pi*t/2) -2 <= t < -1 1 +...