octave-maintainers
[Top][All Lists]
Advanced

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

Re: help with cell and struct concatentation in Matlab


From: Nicholas Jankowski
Subject: Re: help with cell and struct concatentation in Matlab
Date: Mon, 22 May 2017 14:18:13 -0400

On Mon, May 22, 2017 at 1:58 PM, Mike Miller <address@hidden> wrote:
Can someone check these in a
current version of Matlab to see if this is still true?

running in 2017a:

>>  [cell(1), struct('foo','bar')]  %% returns a cell array

ans =

  1×2 cell array

    []    [1×1 struct]

>> [struct('foo','bar'), cell(1)]  %% throws an error
Error using horzcat
The following error occurred converting from cell to struct:
Conversion to struct from cell is not possible.
 
>>  [cell(), struct()]  %% should return a cell array
Error using cell
Not enough input arguments.
 
>> [struct(), cell()]  %% does this error or return a cell array?
Error using cell
Not enough input arguments.

reply via email to

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