[Master Index] [Index for /tools/hpmatlab/toolbox/matlab/datafun]

nextpow2

(/tools/hpmatlab/toolbox/matlab/datafun/nextpow2.m)


Function Synopsis

p = nextpow2(n)

Help text

NEXTPOW2 Next power of two.
	NEXTPOW2(N) returns the first P such that 2^P >= abs(N).  It is
	often useful for finding the nearest power of two sequence
	length for FFT operations.
	NEXTPOW2(X), if X is a vector, is the same as NEXTPOW2(LENGTH(X)).

   	See also LOG2.

Cross-Reference Information

This function calls
This function is called by

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON