decoding by sindrome
no vote
next pow 2 finds the exponent of the next power of two greater than or equal to the window length (ceil(log2(m))), and pow 2 computes the power. Using a power of two for the transform length optimizes the FFT algorithm, though in practice there is usually little difference in execution time from using n=m. To visualize the DFT, plots ofabs(y), abs(y).^2,andlog(abs(y))are all common. A plot of power versus frequency is called a periodogram: