0% found this document useful (0 votes)
25 views

MATLAB Command Window: %diketahui

The document contains a MATLAB code that: 1) Defines a matrix A and vector C. 2) Calculates the inverse of matrix A (inv(A)) and multiplies it by vector C to solve for the vector T. 3) Outputs the calculated vector T.

Uploaded by

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

MATLAB Command Window: %diketahui

The document contains a MATLAB code that: 1) Defines a matrix A and vector C. 2) Calculates the inverse of matrix A (inv(A)) and multiplies it by vector C to solve for the vector T. 3) Outputs the calculated vector T.

Uploaded by

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

MATLAB Command Window Page 1

>> %Diketahui
A = [-2.064, 1, 0, 1, 0, 0, 0, 0, 0;
1, -4.128, 1, 0, 2, 0, 0, 0, 0;
0, 1, -2.128, 0, 0, 1, 0, 0, 0;
1, 0, 0, -4, 2, 0, 0, 0, 0;
0, 1, 0, 1, -4, 1, 0, 0, 0;
0, 0, 1, 0, 2, -6.128, 1, 0, 0;
0, 0, 0, 0, 0, 1, -4.128, 1, 0;
0, 0, 0, 0, 0, 0, 1, -4.128, 1
0, 0, 0, 0, 0, 0, 0, 1, -2.064]
C = [-11.2; -22.4; -12.8; -109.2; -109.2; -212; -202.4; -202.4; -105.21]

%Ditanyakan T

%Jawaban
T = inv(A)*C

A =

-2.0640 1.0000 0 1.0000 0 0 0 0


0
1.0000 -4.1280 1.0000 0 2.0000 0 0 0
0
0 1.0000 -2.1280 0 0 1.0000 0 0
0
1.0000 0 0 -4.0000 2.0000 0 0 0
0
0 1.0000 0 1.0000 -4.0000 1.0000 0 0
0
0 0 1.0000 0 2.0000 -6.1280 1.0000 0
0
0 0 0 0 0 1.0000 -4.1280 1.0000
0
0 0 0 0 0 0 1.0000 -4.1280
1.0000
0 0 0 0 0 0 0 1.0000
-2.0640

C =

-11.2000
-22.4000
-12.8000
-109.2000
-109.2000
-212.0000
-202.4000
-202.4000
-105.2100
MATLAB Command Window Page 2

T =

112.1022
110.7861
106.5534
109.3929
108.1346
103.1596
97.3393
96.2571
97.6100

>>

You might also like