Close
Close window
ne - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

MTM

ne

non-equivalence of array entries

Calling Sequence

ne(M1,M2)

Parameters

M1

-

array or scalar

M2

-

array or scalar

Description

The ne(M1,M2) command tests if the elements of M1 and M2 are not equal. The result is an integer array with 1's where M1[i] is not equal to M2[i], and 0's where the entries are equal.

M1 and M2 must be the same size, or scalars. If M1 is an array and M2 is a scalar, the result will be an array the same size as M1, with 0 and 1 entries indicating entries that were not equal to the scalar value M2.

Examples

>

withMTM:

>

M1Matrix1,2,3,4:

>

M2Matrix1,2,3,5:

>

neM1,M2

0001

(1)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /