• A and B should be arrays of the same sizes. Each element of A is raised to the power of the corresponding element of B. It gives the same result as A.^B.