Create a 3-by-3 matrix: A = [1 2 3;4 5 6;7 8 10]
(a)Extract a submatrix B consisting of rows 1 and 3 and columns 1 and 2 of the matrix A
(b)Interchange rows 1 and 3 of A and put it in a variable C. Hint: use the vector of row indices together with the colon operator
(c)Create a vector version of the original matrix A.
(d)Delete the 2nd column of the original matrix A and put it in a variable called A.
(e)Insert a 2nd column to the new matrix A to restore it back to its original form A.
(f) Extract those entries of the original matrix A that are greater than 5
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here