Fixed-point element-wise power
Create a fixed-point matrix and raise it to a scalar power.
A = fi([1, 3; 4, 2])
A=2×2 object 1 3 4 2 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 12
C = A.^3
C=2×2 object 1 27 64 8 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 48 FractionLength: 36
Base, specified as a scalar, vector, matrix, or multidimensional array. Inputs
B must either be the same size or have
sizes that are compatible (for example,
A is an
M-by-N matrix and
B is a
scalar or 1-by-N row vector).
Complex Number Support: Yes
Exponent, specified as a non-negative, real, integer-valued scalar.
Power, returned as an array with the same dimensions as the input
A has a local
object, the output
C also has the same local
fimath object. The array power operation is always performed using
Usage notes and limitations:
When the exponent
k is a variable, the
ProductMode property of the governing
Both inputs must be scalar, and the exponent input,
be a constant integer.