Question: Create a new function file called modify_matrix.m. Then copy and paste the contents of the create_matrix.m file into this new file, and change the name
Create a new function file called modify_matrix.m. Then copy and paste the contents of the create_matrix.m file into this new file, and change the name of the function in the first line to modify_matrix (instead of create_matrix). By further modifying this new file, write a function that will output a matrix A obtained by modifying an input matrix B in the following way: 1. If an entry in B is greater than or equal to zero then multiply it by 2 2. If an entry in B is less than zero then add 5 to it. Then use this new function to create a matrix A obtained by modifying the following 2121 matrix B (which you can copy and paste directly into Matlab). Then find the determinant of A B = [-0 2 -3 1 -3 -2 -4 4 -8 3 5 -9 -2 -10 8 10 -8 7 3 3 1;-3 7 -6 8 3 -1 -6 -4 -8 3 3 -8 9 -6 -6 -3 -8 2 -7 -4 -4;-7 7 -10 8 -8 -8 5 -8 1 -1 3 -8 3 6 -1 5 -2 -7 8 -7 -5;4 3 10 -3 1 3 -2 -1 -10 -2 -2 6 7 -4 -2 -9 -4 2 2 2 -8;-2 5 -4 -8 -2 -2 7 5 -6 -5 -1 2 -7 5 7 -4 -7 6 -1 -7 2;5 -2 -4 10 8 -0 -0 -1 -7 0 -1 -1 -7 5 -7 10 4 -9 -2 -3 -1;3 -9 10 10 -6 7 -8 -10 -9 8 8 -1 4 -2 9 4 7 3 -8 4 -8;1 -9 1 -9 9 0 9 2 5 -4 -9 5 -5 -5 8 10 -6 -10 7 2 9;6 1 -5 -4 3 6 1 -2 4 -5 3 -5 -10 8 -2 -1 2 7 -10 3 6;3 5 -8 4 2 -2 -7 3 -8 2 9 2 -10 -10 -4 4 -10 -4 -0 3 5;5 -10 -3 2 8 -2 -10 7 4 -2 5 4 -10 -3 6 -4 -6 9 8 -7 -6;5 8 0 -5 -7 -9 8 9 -7 6 5 -3 9 -1 4 2 -4 -8 8 -2 -6;0 9 3 9 -10 -4 -7 9 4 5 -7 -1 2 1 5 8 -6 -9 -2 9 -2;1 -7 -9 2 -9 7 -3 9 6 3 3 1 -7 7 2 5 -9 5 -3 -6 10;-2 1 3 -6 -4 1 5 0 6 6 -9 2 10 3 3 10 6 -4 -9 -9 3;4 -6 -4 -9 -7 5 2 -4 -8 -4 10 -1 -0 4 6 -0 4 -2 1 -4 -2;10 10 -2 -5 2 5 -9 -10 -6 -6 -8 -3 6 10 1 3 8 -8 8 -9 5;1 1 9 -1 5 1 0 -4 -3 -8 -3 -0 4 -3 9 -9 1 -5 1 7 -4;-2 -8 0 5 -6 -5 -8 1 -2 -8 -8 4 5 -2 -7 -0 3 -4 8 1 6;6 -9 -6 -2 7 10 -3 4 8 -2 -8 6 -4 -5 1 -7 4 7 10 -2 -0;-3 4 -8 -7 1 -2 -5 -7 5 -5 4 8 -9 10 9 -8 8 -5 -10 0 6]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
