log2
log2(X) returns logarithm in base 2 of each element of X.
Examples
> log2(10)/log2(2) [ans:3.321928095]
> log2(10) [ans:3.321928095]
> x = 0:0.2:10 [x:1x51 double] > plot(x, log2(x)) [ans:1x1 struct]
> log2(10)/log2(2) [ans:3.321928095]
> log2(10) [ans:3.321928095]
> x = 0:0.2:10 [x:1x51 double] > plot(x, log2(x)) [ans:1x1 struct]