Skip to main content

more options

Self-check exercise: Mathematical Operations

    The following exercises are taken from the manuscript "MATLAB: An Introduction with Applications" by Amos Gilat

  1. Create the following three matrices:


    A =
     5     2    4
     1     7   -3
     6   -10    0
    B =
    11     5   -3
     0   -12    4
     2     6    1
    C =
     7   14    1
    10    3   -2
     8   -5    9

    a) Calculate A + B anb 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.