nextpow2
Exponent of next higher power of 2
Syntax
R = nextpow2(M)
Input argument
M - a variable
Output argument
R - result of nextpow2: next higher power of 2.
Description
if M is a vector or a matrix nextpow2(M) applies element-wise.
If M is a scalar, nextpow2(M) returns the first p such that 2^p >= abs(M).
Example
See also
History
Version
Description
1.0.0
initial version
Author
Allan CORNET
Last updated