Question: please do this exercise using matlab! Instructions: Use the help command to learn about the magic function and the circshift function. a. Use the magic

Instructions: Use the help command to learn about the magic function and the circshift function. a. Use the magic function to create a 4 by 4 matrix A. Sort the rows of A in ascending order. b. Switch the 2nd and 4th rows of A. c. Set all the elements of A which are less than 5 to 1 , set all other elements to 0 . The matrix A should now look like this A=1100110000000000. d. Use the circshift command to transform A into A=0000011001100000. e. Use the circshift command to transform A into A=1001000000001001
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
