Skip to content

power

Element-wise exponentiation (function form of .^).

C = power(A, B)

Returns A .^ B applied elementwise — each element of A raised to the power of the corresponding element of B.

power([2 3 4], 2) % [4 9 16]
  • mpower — Matrix power (A ^ B).
  • exp — Natural exponential.
  • sqrt — Square root.