Main Content

pow10

Base 10 power and scale half-precision numbers

Description

example

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

Note

This function supports only half-precision inputs.

Examples

collapse all

Create a half-precision vector, X.

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

  4x1 half column vector

     1
     2
     3
     4

Compute an array, Y, whose elements are 10 raised to the power X.

Y = pow10(X)
Y = 

  4x1 half column vector

          10
         100
        1000
       10000

Input Arguments

collapse all

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.

Version History

Introduced in R2018b

See Also