octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55245] exist accepts empty matrix as first ar


From: Richard
Subject: [Octave-bug-tracker] [bug #55245] exist accepts empty matrix as first argument in Matlab but is error in Octave
Date: Thu, 20 Dec 2018 08:23:58 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0

Follow-up Comment #4, bug #55245 (project octave):

It's not documented and probably accidental.

In my case I discovered it because class properties initially default to [],
and a class property was a file name. I didn't check for empty before exist as
it had worked so far in Matlab.

There are easy workarounds, but it will cause potentially cause code developed
for Matlab which behaves correctly to throw an error in Octave. Up to you if
you think this is important.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55245>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]