Question: Matlab Write your final answer in the specified area. No credit will be given to illegible work. You can work in a team of up
Write your final answer in the specified area. No credit will be given to illegible work. You can work in a team of up to 3 persons. Name: Group #:_ Score: /20 pts 1. (5 pts) Generate a vector of random integer from 0 to 100 using the randi command in MATLAB. The vector should be a 100x1 vector. Write a MATLAB script that determines if any of the elements are equal to 67, 77, 87. The script should determine the elements that are equal to 67, 77, and 87. In addition, provide the number of elements that fit this criterion. To find the elements use the find command and to find the number of elements use the size command. If none of the elements fit the criteria then the script should state "no element is equal to 67, 77, and 87." 2. [5 pts) Generate two random vector A and B. Test if the vectors are equal. If the matrices are equal, then the script should state that the matrices are equal. If the vectors are not equal, then provides the elements that are equal. In addition, provide the value of the elements that are equal and the number of equal elements. 3. (5 pts) Write a MATLAB script that determines the value of f(x). the script should as the user for a value of x. - 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
