FUNCTION REFERENCE

nextpow2

Exponent of the next power of two.

Exponent of the next power of two.

Syntax

nextpow2(X)

Returns the smallest p with 2^p >= abs(x), for each element.

Example

nextpow2(100)   % 7

Differences from MATLAB: Real double 2-D arrays, one output.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.