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

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

[Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" c


From: Rik
Subject: [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error
Date: Tue, 16 Jan 2018 13:02:02 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #7, bug #52904 (project octave):

@Markus: Wow, Matlab's messages don't seem any more useful than Octave's.  For
completeness, could you run the original motivating example:


Z = logical (ones (25,25));
h = mesh (Z);


My guess now is that this is an unsupported syntax and this will also produce
an error.

If it does then I think there are two possibilities: 1) increase the the input
validation either in surface.m or within graphics.cc, 2) ignore input
validation, and make sure that a partially complete graphics object can not be
constructed and returned.

As an example of what is wrong,


h = surf ('foobar')
error: set: invalid number of arguments
error: called from
    surface>__surface__ at line 189 column 5
    surface at line 63 column 19
    surf at line 72 column 10
ishghandle (h)
error: 'h' undefined near line 1 column 13
get (gca, 'children')
ans = -18.192
hs = ans
hs = -18.192
get (hs, 'type')
ans = surface


h is not defined, but the current axes does contain a surface object.  That is
probably not right, and not what Matlab does.  Maybe the whole object creation
needs to be wrapped in an unwind_protect to remove the object if the
constructor fails.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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