MTM - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Connectivity : MTM Package : MTM/Minus

MTM

 Minus
 matrix subtraction

 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

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $\mathrm{M1}≔\mathrm{Matrix}\left(2,3,'\mathrm{fill}'=2\right):$
 > $\mathrm{M2}≔\mathrm{Matrix}\left(2,3,'\mathrm{fill}'=1\right):$
 > $\mathrm{Minus}\left(\mathrm{M1},\mathrm{M2}\right)$
 $\left[\begin{array}{rrr}{1}& {1}& {1}\\ {1}& {1}& {1}\end{array}\right]$ (1)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam