Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum.
x=[-1 2 3 4 7 9]
c=[1 4 6]
y= x(1)+ x(4) + x(6) = -1 + 4 + 9 = 12
i did it
Back to basics 3 - Temp Directory
Is the Point in a Circle?
Generate a vector like 1,2,2,3,3,3,4,4,4,4
CONVERT TAN TO SIN
Check that number is whole number
cross in array
what can you get for exactly amount of money
Basics - not so easy division
Basic commands - Least common multiple
Basic commands - rounding
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office