Find the fourier transform of a signal with the following form:
sig=[ones(512,1);-ones(512,1)];
Plot the signal and a version of the sign reconstructed using only the first 24, 48 and 96 frequncy components (zero-filing the rest to maintain the length of the signal).