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

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

[Octave-bug-tracker] [bug #56172] concatenation of empty, 2-D, but not 0


From: Richard
Subject: [Octave-bug-tracker] [bug #56172] concatenation of empty, 2-D, but not 0x0 arrays differs from Matlab
Date: Wed, 26 Feb 2020 07:24:54 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0

Follow-up Comment #1, bug #56172 (project octave):

I've hit this bug and I'm wondering if there is a simple workaround to
'collapse' the empty matrix dimensions?

I have to do something like:


rem_inds1 = find (strcmp ('lookingforthis', fnames));
rem_inds2 = find (strcmp ('nowthis', fnames));
rem_inds3 = find (strcmp ('thenthis', fnames));
rem_inds = [ rem_inds1, rem_inds2, rem_inds3 ];


Which fails because the output of find can't be concatenated when it's empty.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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