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

Online Help

All Products    Maple    MapleSim


MTM

  

Minus

  

matrix subtraction

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Minus(M1,M2)

Parameters

M1

-

Array

M2

-

Array

Description

• 

The minus(M1,M2) function performs matrix subtraction of M1 - M2.  If M2 is a scalar, then M2 is subtracted from each element of M2.

• 

Arrays M1 and M2 must be the same size.

Examples

withMTM:

M1Matrix2,3,fill=2:

M2Matrix2,3,fill=1:

MinusM1,M2

111111

(1)

See Also

MTM[plus]

MTM[times]

MTM[mtimes]

MTM[ldivide]

MTM[rdivide]

MTM[mrdivide]