주요 콘텐츠

pow10

R2026b

Base 10 power for fixed-point data

Since R2026b

Description

Y = pow10(X) returns 10 raised to the power of each element of the fixed-point input X such that Y = 10X, where X is a real-valued fi object.

Note

For base 10 power and scaling of half-precision numbers, use the pow10 function.

example

Examples

collapse all

Create a signed fixed-point number and raise 10 to that power.

x = fi(1.5,1,16,10);
y = pow10(x)
y = 

31.609375

      numerictype(1,131,10)

Create a fixed-point vector and evaluate the element-wise base 10 power.

X = fi([0 0.5 1 1.5 2],1,16,12)';
Y = pow10(X)
Y = 

                         1
               3.162109375
               9.998046875
               31.62109375
                       100
      numerictype(1,47,12)

Input Arguments

collapse all

Fixed-point exponent values for base 10 power, specified as a scalar, vector, matrix, or multidimensional array. X must be a real-valued fi object with binary-point scaling.

Data Types: fi

Output Arguments

collapse all

Base 10 power result, returned as a scalar, vector, matrix, or multidimensional array. The output Y is a signed fi object with the same dimensions as X. The output word length and fraction length are determined automatically based on the input type to preserve the precision and range of the result.

Data Types: fi

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2026b

See Also

| | | |