how to get the power of something in matlab code example Example: power matlab C = A.^B C = power(A,B)