plus - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


MTM

  

plus

  

matrix addition

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

plus(M1,M2)

Parameters

M1

-

array

M2

-

array

Description

• 

The plus(M1,M2) function performs matrix addition of M1 + M2.  If M1 is a scalar, then M1 is added to each element of M2.

• 

Arrays M1 and M2 must be the same size.

Examples

withMTM:

M1Matrix2,3,fill=1:

M2Matrix2,3,fill=2:

plusM1,M2

333333

(1)

See Also

MTM[ldivide]

MTM[Minus]

MTM[mrdivide]

MTM[mtimes]

MTM[rdivide]

MTM[times]