Question: MATLAB Given the vector x = [1 8 3 9 0 1], create a short set of commands that will: a. Add up the values
MATLAB Given the vector x = [1 8 3 9 0 1], create a short set of commands that will: a. Add up the values of the elements (Check your result using the function sum) b. Computes the running sum (for element j, the running sum is the sum of the elements from 1 to j, inclusive. (Check your result using the function cumsum) c. computes the sine of the given x-values (assuming that the elements of the vector are angles in radians) ( your answer should be a vector) WILL GIVE GOOD FEEDBACK
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
