0% found this document useful (0 votes)
7 views2 pages

3 X 3 Matrix Size

Uploaded by

kathlenecleto1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

3 X 3 Matrix Size

Uploaded by

kathlenecleto1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

% 3 X 3 MATRIX SIZE

format short

if selectedButton == app.x3Button
% DETERMINANT
A=[A11,A12,A13;A21,A22,A23;A31,A32,A33];
B = det(A)
if B == 0
msgbox(" THE GIVEN MATRIX SINGULAR ")
else

A11 = app.C11.Value;
A21 = app.C21.Value;
A31 = app.C31.Value;
A41 = app.C41.Value;
A51 = app.C51.Value;
A12 = app.C12.Value;
A22 = app.C22.Value;
A32 = app.C32.Value;
A42 = app.C42.Value;
A52 = app.C52.Value;
A13 = app.C13.Value;
A23 = app.C23.Value;
A33 = app.C33.Value;
A43 = app.C43.Value;
A53 = app.C53.Value;
A14 = app.C14.Value;
A24 = app.C24.Value;
A34 = app.C34.Value;
A44 = app.C44.Value;
A54 = app.C54.Value;
A15 = app.C15.Value;
A25 = app.C25.Value;
A35 = app.C35.Value;
A45 = app.C45.Value;
A55 = app.C55.Value;

% COFACTOR

CF11 = 1*((C22*C33)-(C23*C32));
CF12 = -1*((C21*C33)-(C23*C31));
CF13 = 1*((C21*C32)-(C22*C31));
CF21 = -1*((C12*C33)-(C13*C32));
CF22 = 1*((C11*C33)-(C31*C13));
CF23 = -1*((C11*C32)-(C12*C31));
CF31 = 1*((C12*C23)-(C13*C22));
CFF32 = -1*((C11*C23)-(C13*C21));
C33 = 1*((C11*C22)-(C12*C21));

% INVERSE

INV11 = CF11/B;
INV12 = CF12/B;
INV13 = CF13/B;
INV21 = CF21/B;
INV22 = CF22/B;
INV23 = CF23/B;
INV31 = CF31/B;
INV32 = CF32/B;
INV33 = CF33/B;
app.D11 Value = INV11
app.D21.Value = IVN12
app.D31.Value = INV13
app.D12.Value = INV21
app.D22.Value = INV22
app.D32.Value = INV23
app.D13.Value = INV31
app.D23.Value = INV32
app.D33.Value = INV33
end
end

You might also like