|
From: | Garrett |
Subject: | [Octave-bug-tracker] [bug #35481] [var{:}] does not collapse empty elements when some elements are cell |
Date: | Mon, 20 Feb 2012 18:39:56 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0 |
Follow-up Comment #7, bug #35481 (project octave): Haha, it took me a week but I completely agree. This is a bug in Matlab and in my code (for making use of it). I was concatenating the elements of a cell array which were either cellstr arrays or untouched (and thus set as [] from the 'cell' call). Matlab would trim off the untouched elements in the [var{:}] operation while Octave did not. This was convenient but incorrect. I now initialize the variable with a cell array of empty CELL arrays. That works as desired in both Octave & Matlab, avoids mixed-type concatenation and avoids Matlab's bug of aggressive trimming in mixed-type concatenation with cell arrays. Thanks Philip & Ben! _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?35481> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |