Exercise- Matrix - C10

Exercise- Matrix - C10


  1. A + B

    A+B
    ##      [,1] [,2] [,3]
    ## [1,]    4    6   -2
    ## [2,]    4   -3    5
  2. A + C

    #A+C

    A and C are not the same size.A+C is not defined.

  3. B^t + C

    B1 + C
    ##      [,1] [,2]
    ## [1,]    5    2
    ## [2,]    6   -6
    ## [3,]   -1    7
  4. A + B^t

    #A + B1

    A and B^t are not the same size. A + B^t is not defined.

  5. (BetA)C

     Beta * C
    ##      [,1] [,2]
    ## [1,]    1    2
    ## [2,]    2    0
    ## [3,]   -1    1
  6. 4A - 3B

    4 * A - 3 * B
    ##      [,1] [,2] [,3]
    ## [1,]   -5   10  -15
    ## [2,]   30   30  -15
  7. A^t + (Alpha)C

    A1 + (Alpha * C)
    ##      [,1] [,2]
    ## [1,]    9   22
    ## [2,]   20    3
    ## [3,]  -11    8
  8. A + B -C^t

    A + B - C1
    ##      [,1] [,2] [,3]
    ## [1,]    2    2    0
    ## [2,]    0   -3    3
  9. 4A + 2B - 5C^t.

    4*A + 2*B - 5 * C1
    ##      [,1] [,2] [,3]
    ## [1,]    0    0    0
    ## [2,]    0    0    0