power
Element-wise exponentiation (function form of .^).
Syntax
Section titled “Syntax”C = power(A, B)Description
Section titled “Description”Returns A .^ B applied elementwise — each element of A raised to the power of the corresponding element of B.
Example
Section titled “Example”power([2 3 4], 2) % [4 9 16]