log2

base 2 logarithm

Calling Sequence

y=log2(x)

Arguments

:x vector or matrix :

Description

log2(x) is the “element-wise” base 2 logarithm y(i,j)=log2(x(i,j)).

Examples

2.^log2([1,%i,-1,-%i])

See Also

  • log natural logarithm
  • hat (^) exponentiation
  • ieee set floating point exception mode
  • log10 base 10 logarithm
  • frexp dissect floating-point numbers into base 2 exponent and mantissa

Table Of Contents

This Page