Member of the basic class.
c = realpow(a, b)
Raises input elements to powers that you specify. realpow is equivalent to power for positive real numbers but generates an error if the result is complex.
| Name | Description |
| a | Specifies the elements you want to raise to a power. a is a scalar, vector, or matrix. |
| b | Specifies the powers to which you want to raise the elements in a. b is a scalar, vector, or matrix. |
| Name | Description |
| c | Returns the values of a^b. c is a matrix of the same size as a or b. |
If a is a scalar, LabVIEW sets a to a matrix of the same size as b whose elements all equal the value you specified for a. If b is a scalar, LabVIEW sets b to a matrix of the same size as a whose elements all equal the value you specified for b.
A = [1:1:5]
B = A
C = realpow(A, B)