David
Farruggio

MathGenie

nextpow2

Exponent of next higher power of 2

Syntax and Description

nextpow2(A) returns the exponents for the smallest powers of two that satisfy
2^p|A|
for each element in A.

Back to functions