nextpow2
Exponent of next higher power of 2
Syntax
Description
P = nextpow2( returns the exponents for the
smallest powers of two that satisfyA)
for each element in A. By convention,
nextpow2(0) returns zero.
You can use nextpow2 to pad the signal you pass to fft. Doing so can speed up the
computation of the FFT when the signal length is not an exact power of 2.