0% found this document useful (0 votes)
41 views4 pages

Nama: Nim: Praktikum Metode Numeris: Laporan Sementara

The document summarizes operations performed on matrices and vectors in MATLAB. It shows assigning values to variables A, B, P, Q, M, and performing operations such as addition, subtraction, multiplication, left and right division, exponentiation on the matrices and vectors. It also shows transposing a matrix and computing the inverse of a matrix.
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)
41 views4 pages

Nama: Nim: Praktikum Metode Numeris: Laporan Sementara

The document summarizes operations performed on matrices and vectors in MATLAB. It shows assigning values to variables A, B, P, Q, M, and performing operations such as addition, subtraction, multiplication, left and right division, exponentiation on the matrices and vectors. It also shows transposing a matrix and computing the inverse of a matrix.
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/ 4

Nama :

NIM :
Praktikum Metode Numeris

Laporan Sementara

Startup execution:
loading initial environment

-->B = 2.345
B =

2.345

-->R = [3 7 2]
R =

3. 7. 2.

-->S = [0; -3; 28; 4]


S =

0.
- 3.
28.
4.

-->A = [2, -4, 5; 0, 12, 1; -20, 6, 4]


A =

2. - 4. 5.
0. 12. 1.
- 20. 6. 4.

-->A = [1 2 3; 4 5 6];

-->B = [-1 0 8; 3 3 4];

-->A+B
ans =

0. 2. 11.
7. 8. 10.

-->A-B
ans =

2. 2. - 5.
1. 2. 2.

-->P = [7 -2 10 9];

-->Q = [5 6; 0 1; -1 3; 3 -7];
-->P*Q
ans =

52. 7.

-->M = [-1 0 7; 5 10 -3];

-->M'
ans =

- 1. 5.
0. 10.
7. - 3.

-->A = [2 3 4; 2 6 7; 0 1 4]
A =

2. 3. 4.
2. 6. 7.
0. 1. 4.

-->B = [2; 4; 1]
B =

2.
4.
1.

-->X = A\B
X =

- 0.0555556
0.5555556
0.1111111

-->C = B'
C =

2. 4. 1.

-->y = C/A
y =

0.2222222 0.7777778 - 1.3333333

-->A = [2 3 4; 2 6 7; 0 1 4]
A =

2. 3. 4.
2. 6. 7.
0. 1. 4.
-->A^3
ans =

76. 243. 416.


130. 420. 719.
24. 89. 170.

-->A = [-1 2; 9 -3]


A =

- 1. 2.
9. - 3.

-->B = [10 2; 4 -5]


B =

10. 2.
4. - 5.

-->A.*B
ans =

- 10. 4.
36. 15.

-->A.\B
ans =

- 10. 1.
0.4444444 1.6666667

-->A./B
ans =

- 0.1 1.
2.25 0.6

-->B.\A
ans =

- 0.1 1.
2.25 0.6

-->A.^2
ans =

1. 4.
81. 9.

-->B.^3
ans =
1000. 8.
64. - 125.

You might also like