0% found this document useful (0 votes)
13 views1 page

Tutorial 3.2 - Matrix Operation and Manipulation

Uploaded by

niclaronce
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)
13 views1 page

Tutorial 3.2 - Matrix Operation and Manipulation

Uploaded by

niclaronce
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/ 1

12.

Create the following three matrices:


2 5 -2 -3 5 0 0 4 3
A = 3 2 -4 B = -3 2 7 C = 3 2 1
0 3 1 -2 6 9 4 6 -3
a) Calculate A + B and B + A to show that addition of matrices is commutative.
b) Calculate (A + B) + C and A + (B + C) to show that addition of matrices is associative.
c) Calculate 5(A + C) and 5A + 5C to show that when matrices are multiplied by a scalar, the
multiplication is distributive.
d) Calculate A* (B + C ) and A*B + A*C to show that matrix multiplication is distributive.
e) Does A*B = B*A?
f) Does A*(B*C) = (A*B)*C?
g) Does (A*B)t = Bt*At
h) Does (A + B)t = At + Bt

13. Solve the following system of three linear equations.


5x + y - 2z =3
3x - 2y + 5z =8
-4x + 2y + 3z =5

14. Show that ( ) =2


Do this by first creating a vector x that has the elements: 5, 3, 2, 1.5, 1.1, 1.001, 1.00001. Then, create a
new vector y in which each element is determined from the elements of x by . Compare the
elements of y with value 2 (use format long to display the numbers).

15. Use Matlab to show that the sum of the infinite series

a) n = 10 b) n = 20 c) n =30 d) n= 40
for each create a vector n in which the first element is 1, the increment is 1, and the last term is 10, 20,
30, or 40. Then use element-by-element calculations to create a vector in which the elements are .
Finally , use the sum function to add the terms in the series. Compare the values obtained in parts (a),
(b), (c) and (d) with the value of 1. (Do not forget to type semicolons at the end of commands that
otherwise will display large vectors.)

You might also like