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:43:36 -0400



On Mon, May 22, 2017 at 2:28 PM, Mike Miller <address@hidden> wrote:
On Mon, May 22, 2017 at 14:18:13 -0400, Nicholas Jankowski wrote:
> >>  [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.

Ok, sorry, that's an Octave extension. Please try these instead

>> [{}, struct()]

ans =

  cell

    [1×1 struct]

>> [struct(), {}]

ans =

  struct with no fields.


reply via email to

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