Question: 1. Given the two vectors = 1, 3, 5, 11 and = 5, 3, 1, , 5, perform the following operations using MATLAB. Note that
1. Given the two vectors = 1, 3, 5, 11 and = 5, 3, 1, , 5, perform the following operations using MATLAB. Note that you are not allowed to perform any mathematical calculations/simplifications out of MATLAB. I. Find the maximum element in which is less than the 2 element in . II. Rearrange vector in descending order and vector in ascending order. III. By using a for-loop, replace each element in by the corresponding element in . You should get a vector containing all the elements of and vice versa.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
