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