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 00:42:11 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #52904 (project octave):

                 Summary: "mesh" with input array of "logical" type causes
Octave to crash => "mesh" with input array of "logical" causes error

    _______________________________________________________

Follow-up Comment #2:

Confirmed.  I changed the summary because Octave doesn't crash, i.e., exit and
return to the shell prompt.  It simply fails to complete the drawing of the
surface object and issues an error.

The issue is pretty clear as well.  The line in question is


  h = __go_surface__ (ax, "xdata", x, "ydata", y, "zdata", z, "cdata", c,
                      other_args{:});


At this point, the "zdata" z is still logical.  But according to Matlab's own
documentation this is not a legal value.  See
http://www.mathworks.com/help/matlab/ref/matlab.graphics.primitive.surface-properties.html#property_d119e937079.

A simple fix would be for the surface m-file to convert logical to some
numeric format which is accepted.  It could be double, but that also takes up
more space than necessary.  Perhaps uint8 would be better.


    _______________________________________________________

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]