Main Content

pow10

R2026b

Base 10 power and scale half-precision numbers

Description

Y = pow10(X) returns the array Y, whose elements are 10 raised to the power X.

Note

This function supports only half-precision inputs. For base 10 power of fixed-point data, use the pow10 function.

example

Examples

collapse all

Create a half-precision vector X, then compute the array Y whose elements are 10 raised to the power X.

X = half([1;2;3;4]);
Y = pow10(X)
Y = 

  4×1 half column vector

          10
         100
        1000
       10000

Input Arguments

collapse all

Exponent values for base 10 power, specified as a half-precision numeric scalar, vector, matrix, or multidimensional array

Data Types: Half

Output Arguments

collapse all

Array whose elements are 10 raised to the power X, returned as a half-precision scalar, vector, matrix, or multidimensional array.

Data Types: Half

Version History

Introduced in R2018b

See Also

|