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

Online Help

All Products    Maple    MapleSim


MTM

  

ElementwiseNot

  

element-wise logical not

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

ElementwiseNot(M)

Parameters

M

-

matrix, vector, array or scalar

Description

• 

The command ElementwiseNot(M) performs an element-wise logical not on M.

• 

For matrix M, the result R is a matrix where  R[i,j] = 1, if M[i,j] = 0, and R[i,j] = 0 otherwise.

• 

For scalar M, the result R = 1, if M is 0, and R = 0 otherwise.

Examples

withMTM:

MMatrix1,0,3,0:

ElementwiseNotM

0101

(1)

See Also

MTM[ElementwiseAnd]

MTM[ElementwiseOr]

MTM[eq]