[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
- abs /tools/hpmatlab/toolbox/matlab/elfun/abs.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- finite /tools/hpmatlab/toolbox/matlab/ops/finite.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
This function is called by
- cztdemo /tools/hpmatlab/toolbox/signal/cztdemo.m
- filtdemo /tools/hpmatlab/toolbox/signal/filtdemo.m
- hilbert /tools/hpmatlab/toolbox/signal/hilbert.m
- xcorr /tools/hpmatlab/toolbox/signal/xcorr.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON