Question: Matlab (EXERCISE 3) Exercise 3: Array Operations Designed to test skills with: element-wise operations, string and char arrays, and built-in math functions ENGR 1221 Complete
Matlab (EXERCISE 3)
Exercise 3: Array Operations Designed to test skills with: element-wise operations, string and char arrays, and built-in math functions ENGR 1221 Complete the following operations in a script file. Terminate each line with a semicolon; use disp) to display final answers to the command window. Numerical Array Operations a. b. 1. Create a row vector, X, consisting of the numbers from 0 through 100, in steps of 0.1. Use element-wise operations to create the vector Y, according to the following equation: sin 10 (To) 10 Use Matlab built-in functions to calculate the following quantities. (Use the given variable names for compatibility with the checker script.) c. prob1c- the sum of the elements of Y, EXCLUDING Y(1) d. probld-the maximum ofy e. proble the minimum of Y f. problf- the value of X where the minimum of Y occurs (Hint: You can get more information in part e)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
