This page may qualify for speedy deletion because: Low-quality, low-volume material not worth salvaging; almost nothing to learn from here. No further reading. If you disagree or intend to fix it, and you have not contributed to it before, you may remove this notice. If you have contributed before and disagree, please explain why on the discussion page, after adding {{hangon}} to the top of the . This will alert curators and custodians to your intention, and may permit you the time to write your explanation. Before deleting check the discussion page, what links here, history (last edit), the page log, and Wikiversity:Deletions. |
This is a matrices tutorial showing a user how to input different matrices, computing different mathematical equations. Some of these equations are matrix multiplication, matrix addition, matrix division, matrix inverses, and determinates.
EDU>> %Matlab EDU>> a = [ 1 2; 3 4 ]
a =
1 2 3 4
EDU>> a
a =
1 2 3 4
EDU>> a * a
ans =
7 10 15 22
EDU>> b = [ 1 2; 0 1 ]
b =
1 2 0 1
EDU>> a*b
ans =
1 4 3 10
EDU>> b*a
ans =
7 10 3 4
EDU>> a + b
ans =
2 4 3 5
EDU>> s = a + b
s =
2 4 3 5
EDU>> inv (s)
ans =
-2.5000 2.0000 1.5000 -1.0000
EDU>> s * inv (s)
ans =
1.0000 -0.0000 0 1.0000
EDU>> s/s
ans =
1 0 0 1
EDU>> s\s
ans =
1 0 0 1
EDU>> inv (s) * s
ans =
1.0000 0 0 1.0000
EDU>> a/b
ans =
1 0 3 -2
EDU>> a\b
ans =
-2.0000 -3.0000 1.5000 2.5000
EDU>> c = [ 1 1; 1 1 ]
c =
1 1 1 1
EDU>> inv(c); Warning: Matrix is singular to working precision. EDU>> det(a)
ans =
-2
EDU>> det(c)
ans =
0
EDU>> quit