pow2
R2026bBase 2 power and scaling for fixed-point data
Syntax
Description
scales B = pow2(A,k)A raised to the power of k, where
k is an integer and A and B
are fi objects. The operation is performed as a
bit shift.
Note
In fixed-point arithmetic, shifting by k bits is equivalent to
and more computationally efficient than computing B =
A*2k.
Note
For base 2 power and scaling of floating-point numbers, use the pow2 function.