Calculate power of exponential
2 views (last 30 days)
Daniel Pollard on 23 Apr 2021
Deleted my previous answer as I hadn't seen your edit so gave a wrong answer.
You need a . before the multiplication symbol. Try
A = [8 7 0];
B = [2 12 1];
C = exp(A)
C.*B computes element-wise multiplication of C and B, then sum them to calculate the do product.