write a script to find the sum of an array of numbers of the form 2n-10, n = 1,2,…, 10.
1 view (last 30 days)
Dhruv G on 22 Jun 2021
Think about how the ':' is used when defining an array within parantheses or in square brackets. Think about how multiplying an array with a scalar works, and look at how the sum() function in matlab works.