Express x(t) in terms of rectangular pulse functions and triangular pulse function, and then compute the Fourier transform of this signal. Plot the magnitude and phase of the Fourier transform in Matlab. Please show your steps and just part of the code. I can do the X/Y labels but unsure of some the other commands.
x(t)
2
1
-1
0
1
2