Y = exp2(X);
Returns the exponential function (base 2) of X or the elements of X.
y = 2x;
X |
exp2(x) |
1 |
2 (= 21) |
2.1 |
4.8709 (= 22.1) |
-2.6 |
0.16494 (= 2-2.6) |
[1,2.1;-2.6,1] |
[2,4.8709;0.16494,2] ( = [21,22.1;2-2.6,21] ) |
X and Y must have the same size.