octave-maintainers
[Top][All Lists]
Advanced

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

Re: Help with {} construction rules


From: Rik
Subject: Re: Help with {} construction rules
Date: Wed, 31 Dec 2014 09:02:48 -0800

On 12/31/2014 08:34 AM, Julien Bect wrote:
Le 31/12/2014 17:19, Rik a écrit :
12/30/14

Can someone run the following code under Matlab and send back the diary
file?  I believe that Matlab is checking every element for being empty and
discarding any it finds (https://savannah.gnu.org/bugs/?43113).

% Matlab doesn't discard empty elements
% For example, in Matlab R2012a

>> {[], [], []}

ans =

    []    []    []

diary on
{1, 2 ; ; 3, 4}
{1, 2 ; [] ; 3, 4}

>> {1, 2 ; [] ; 3, 4}
Error using vertcat
CAT arguments dimensions are not consistent.


Is this also true for empty cell elements, the tests at the bottom of my list?

{ {}, {}, {} }
{1, 2; {}; 3, 4}

--Rik


reply via email to

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