134k views
1 vote
Implement Matlab code to make a conjecture for the following statements. Use the det command. a) Is it true that det(A + B) = det A + det B? To find out, generate random 5 × 5 matrices A and B, and compute det(A + B) − det A − det B. Repeat the calculations for three other pairs of n ×n matrices, for various values of n. Report your results.

1 Answer

1 vote

Answer:

Explanation:

Please find the code in italics

To generate random matrix of 5x5:

n=5;

A=rand(n);

B=rand(n);

Let C be Det(A+B)

C=det(A+B);

D=det(A);

E=det(B);

F=D+E;

Let x be the check if both are equal:

x=isequal(C,E)

x will return 1 if the statement is true and 0 if it is false

-To find for three different pairs change the value of n

User Enzo Tran
by
4.2k points