Re: [Octave-bug-tracker] [bug #61473] unexpected results from eq
From:
Liang Tang
Subject:
Re: [Octave-bug-tracker] [bug #61473] unexpected results from eq
Date:
Sun, 14 Nov 2021 11:21:23 -0000
I am assuming eq and isequal is an cell element by element comparison within cellfun. The code I provided is a comparison of one number with another number at at a time for each cell element. Comment #1 is invalid.
eq gave the wrong result.
On Sunday, November 14, 2021, 06:14:35 AM EST, Markus Mützel <invalid.noreply@gnu.org> wrote:
Like already answered in comment #1, `eq` is the *element-wise* comparison operation. It returns a value for each element in both input arguments. `isequal` compares *all* elements and returns a scalar.