%% Exponentiation
% Raise 2 to the power of E.

E = [1 -2 4 -4 3 9];
Y = pow2(E)

%
% Copyright 2020 The MathWorks, Inc.