Question: It is a math question. please find the det(A) by using matlab. B = [-1 -9 0 9 3 -2 3 1 -2 -1 -6

It is a math question.

please find the det(A) by using matlab.

B = [-1 -9 0 9 3 -2 3 1 -2 -1 -6 -1 -3 -6 9 7 6 -8 6 9 7 -10;7 -3 1 1 5 1 9 -8 -2 8 9 -2 -10 -8 5 -8 0 -7 6 2 4 -6;9 5 -3 0 -2 -6 -3 3 9 7 6 7 -3 9 7 3 8 -8 6 1 5 -5;0 1 -4 -8 8 7 -7 3 4 -2 -1 6 5 1 8 6 -4 -3 8 -2 8 4;-1 4 -4 9 -6 6 7 8 -7 5 -4 4 9 -1 5 -3 -4 7 8 -0 6 5;-3 9 -8 -8 -1 6 -4 -5 8 10 2 -0 3 4 10 -3 4 2 6 -6 -4 -8;-4 7 8 -1 3 -10 7 6 5 -6 -4 10 1 -4 8 -8 4 -9 5 7 3 -7;-2 2 -6 4 -9 -7 1 8 4 3 8 -0 -4 -7 7 4 7 -9 -1 -3 5 7;-6 -7 -7 -5 7 -3 -7 -1 -2 9 -0 -8 3 -8 -1 9 -0 2 5 8 3 5;8 -3 -3 -6 -5 4 -4 8 6 -1 -5 8 0 -2 7 -3 -2 -1 -1 -3 9 -10;2 7 -0 9 3 -2 9 -3 -7 -9 0 7 -9 -7 -8 -4 -10 -2 6 -5 0 -1;0 2 -0 -8 -1 5 7 5 -3 1 -6 -8 -3 7 -2 3 -9 4 5 -1 -7 1;9 -7 -5 8 8 -8 -9 2 -1 -9 -3 6 9 -9 -9 -3 3 -8 -8 -8 8 7;3 2 9 -2 4 1 -2 2 5 3 1 -4 0 7 4 -1 4 7 2 -10 6 -2;-2 9 4 -8 7 -10 -6 6 -9 8 -8 -2 6 2 -2 -3 -2 -3 -0 0 9 6;4 4 9 -1 -10 -7 -2 -4 9 -5 4 -9 2 -3 0 2 2 0 2 2 -9 7;-2 -7 -2 -4 5 -7 2 8 8 -8 -3 1 7 -0 8 9 2 -4 10 -6 -7 6;-0 5 3 5 5 -2 -3 -0 -0 -1 -5 -1 -1 7 1 4 -9 8 6 -3 5 -3;-6 4 -8 -4 1 4 -9 0 2 5 2 -2 -9 -4 6 9 -6 -1 -0 -3 5 6;2 2 5 -9 -8 -4 2 -1 8 2 -10 3 5 -0 9 2 -10 10 -10 9 2 -8;7 7 4 3 7 3 3 1 -9 8 0 -9 -1 -6 -1 8 -7 -7 -1 4 -0 -10;-8 8 -10 1 5 -6 1 -3 -1 8 2 -7 7 -10 4 9 -2 -3 5 -3 -8 8]

You can copy the B.

I think the function is:

for x = B(:)' if x=0 x=x*2 else x=x+2 end end

i can get the x. But i do not how to form the matrix.

please help!

It is a math question. please find the det(A) by

\ffunction [A] = create_matrix(a,n,m) A = zeros(n,m); for i=1:n for j=1:m A(i,j)=a(i,j); end end end Step1 : save modify_matrix.m file in matlab folder Step2: In command window Type B = [-1 -9 0 9 3 -2 3 1 -2 -1 -6 -1 -3 -6 9 7 6 -8 6 9 7 -10;7 -3 1 1 5 1 9 -8 -2 8 9 -2 -10 -8 5 -8 0 -7 6 2 4 -6;9 5 -3 0 -2 -6 -3 3 9 7 6 7 -3 9 7 3 8 -8 6 1 5 -5;0 1 -4 -8 8 7 -7 3 4 -2 -1 6 5 1 8 6 -4 -3 8 -2 8 4;-1 4 -4 9 -6 6 7 8 -7 5 -4 4 9 -1 5 -3 -4 7 8 -0 6 5;-3 9 -8 -8 -1 6 -4 -5 8 10 2 -0 3 4 10 -3 4 2 6 -6 -4 -8;-4 7 8 -1 3 -10 7 6 5 -6 -4 10 1 -4 8 -8 4 -9 5 7 3 -7;-2 2 -6 4 -9 -7 1 8 4 3 8 -0 -4 -7 7 4 7 -9 -1 -3 5 7;-6 -7 -7 -5 7 -3 -7 -1 -2 9 -0 -8 3 -8 -1 9 -0 2 5 8 3 5;8 -3 -3 -6 -5 4 -4 8 6 -1 -5 8 0 -2 7 -3 -2 -1 -1 -3 9 -10;2 7 -0 9 3 -2 9 -3 -7 -9 0 7 -9 -7 -8 -4 -10 -2 6 -5 0 -1;0 2 -0 -8 -1 5 7 5 -3 1 -6 -8 -3 7 -2 3 -9 4 5 -1 -7 1;9 -7 -5 8 8 -8 -9 2 -1 -9 -3 6 9 -9 -9 -3 3 -8 -8 -8 8 7;3 2 9 -2 4 1 -2 2 5 3 1 -4 0 7 4 -1 4 7 2 -10 6 -2;-2 9 4 -8 7 -10 -6 6 -9 8 -8 -2 6 2 -2 -3 -2 -3 -0 0 9 6;4 4 9 -1 -10 -7 -2 -4 9 -5 4 -9 2 -3 0 2 2 0 2 2 -9 7;-2 -7 -2 -4 5 -7 2 8 8 -8 -3 1 7 -0 8 9 2 -4 10 -6 -7 6;-0 5 3 5 5 -2 -3 -0 -0 -1 -5 -1 -1 7 1 4 -9 8 6 -3 5 -3;-6 4 -8 -4 1 4 -9 0 2 5 2 -2 -9 -4 6 9 -6 -1 -0 -3 5 6;2 2 5 -9 -8 -4 2 -1 8 2 -10 3 5 -0 9 2 -10 10 -10 9 2 -8;7 7 4 3 7 3 3 1 -9 8 0 -9 -1 -6 -1 8 -7 -7 -1 4 -0 -10;-8 8 -10 1 5 -6 1 -3 -1 8 2 -7 7 -10 4 9 -2 -3 5 -3 -8 8]; Step3: In command window Type [A]= modify_matrix(B,22,22) Step 4: press enter Commond window Step5 Type det(A) on command window \ffunction [A] = modify_matrix(a,n,m) A = zeros(n,m); for i=1:n for j=1:m if a(i,j)=0 A(i,j)=2*a(i,j); else A(i,j)=a(i,j)+2; end end; end; end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!