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

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

[Octave-bug-tracker] [bug #51725] Adding mxGetProperty to Matlab API


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #51725] Adding mxGetProperty to Matlab API
Date: Fri, 11 Aug 2017 20:34:04 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #10, bug #51725 (project octave):

Rik: This is what I see:


octave:1> x = containers.Map;
octave:2> mexprop (x, "FooBar")
octave:3> assert (mexprop (x, "FooBar"), [])
error: assert (mexprop (x, "FooBar"),[]) failed
error: called from
    assert at line 92 column 11
octave:3> x = mexprop (x, "FooBar")
error: value on right hand side of assignment is undefined


so it looks to me like converting a NULL mxArray pointer to an octave_value
object creates an undefined octave_value, not an empty Matrix.

What does Matlab do if plhs[0] is NULL?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51725>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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