Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please, solve according to matlab codes step by step. h. Create a matrix called MA which has length(VA) rows and each row equals to HA
Please, solve according to matlab codes step by step.
h. Create a matrix called MA which has length(VA) rows and each row equals to HA by using meshgrid.
Create the following matrix 12 35 36 12 54 28 34 65 66 62 41 65 A-148 23 48 87 10 40 77 65 76 22 38 54 76 13 12 10 52 38 a. Find locations (i.e. row and column indices) of 10th, 16th and 24th elements of matrix A. (Hint: Use "floor" and "rem" built-in functions.) b. Find the element index of A(2,3), A(3,4) and A(5,5). c. Use "reshape" command to convert the 5 by 6 given matrix A to a 10 by 3 matrix. Assign the new matrix into a variable called B. In which order the elements were assigned into new matrix? Explain d. Find locations (i.e. row and column indices) of 10h 16h and 24h elements of matrix B. e. Find the element index of B(2,3), A(7,3) and A(5,3). f. Sort matrix A based on the third column in ascending order and descending orders by using the "sortrows" built-in function. g. Assign the first column of matrix A into a vector called VA and last row into a vector HAStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started