[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Are ~=, != and ne exactly the same?
From: |
Pedro |
Subject: |
Re: Are ~=, != and ne exactly the same? |
Date: |
Tue, 21 May 2013 23:35:46 +0200 |
On Tue, May 21, 2013 at 7:03 PM, Juan Pablo Carbajal
<address@hidden> wrote:
>
> On Tue, May 21, 2013 at 7:00 PM, Peng Yu <address@hidden> wrote:
> > Hi,
> >
> > According to the help, it seems that ~=, != and ne are exactly the
> > same (except that ne is not an operator). Is my interpretation
> > correct? Thanks.
> >
> > -- Operator: ~=
> > Logical 'not equals' operator.
> >
> > See also: !=, ne
> >
> > -- Operator: !=
> > Logical 'not equals' operator.
> >
> > See also: ~=, ne
> >
> > -- Built-in Function: ne (X, Y)
> > Return true if the two inputs are not equal. This function is
> > equivalent to `x != y'.
> >
> > See also: eq, isequal
> >
Correct
~=
is due to MATLAB compatibility
!=
is more standard, used for example in C, C++, python, etc.