nextpow2
Find the smallest integer which is (a) larger than the given integer and (b) a power of 2.
np=nextpow2(n)
Inputs
n Any integer.
Outputs
np The smallest integer such that (a) np>=n , and (b) there is an integer m such that 2^m=np .