www.gusucode.com > elfun工具箱matlab源码程序 > elfun/pow2.m

    %POW2   Base 2 power and scale floating point number.
%   X = POW2(Y) for each element of Y is 2 raised to the power Y.
%
%   X = POW2(F,E) for each element of the real array F and a integer
%   array E computes X = F .* (2 .^ E).  The result is computed
%   quickly by simply adding E to the floating point exponent of F.
%   This corresponds to the ANSI C function ldexp() and the IEEE
%   floating point standard function scalbn().
%
%   See also LOG2, REALMAX, REALMIN.

%   Copyright 1984-2005 The MathWorks, Inc.
%   Built-in function.