|
From: | Carnë Draug |
Subject: | [Octave-bug-tracker] [bug #49028] Selecting items from a struct array without the first element produces garbage |
Date: | Thu, 8 Sep 2016 14:14:56 +0000 (UTC) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #1, bug #49028 (project octave): The issue seems to be there on development version as well. The issue seems to be on logical indexing a struct array when one of the elements is empty: octave> p = struct (); octave> p(2).channel = "A"; octave> p(3).channel = "B"; octave> p(4).channel = "C"; octave> [p.channel] ans = ABC ## note that this does not include the empty value octave> [p.channel] == "B" ## so the indexing array is missing the first element ans = 0 1 0 I'm thinking this may not be a bug after all. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?49028> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |