Need to do a for loop when the vector is negative
x = -10:1:-1
n = 1:1:10
Trying to find
a(x) = 12 * x(n)^5
Instructions say to use a variable index to find a(x) because otherwise I get this error "Array indices must be positive integers or logical values."
How do I use a variable index for this?