Member of the basic class.
c = nextpow2(a)
Computes the first power of 2 that is not smaller than abs(a). More precisely, p = nextpow2(a) if 2^p>=abs(a) and p is minimal.
| Name | Description |
| a | Specifies a scalar or vector. If a is a vector, nextpow2(a) is equivalent to nextpow2(length(a)). |
| Name | Description |
| c | Returns the first power of 2 that is not smaller than abs(a). c is a scalar. |
A = 7.3
C = nextpow2(A)