[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
help with cell and struct concatentation in Matlab
From: |
Mike Miller |
Subject: |
help with cell and struct concatentation in Matlab |
Date: |
Mon, 22 May 2017 10:58:10 -0700 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
Hi,
Back in 2011, a bug report was addressed about concatenation of unlike
types. At that time, the following were listed as test cases and results
in Matlab:
[cell(1), struct('foo','bar')] %% returns a cell array
[struct('foo','bar'), cell(1)] %% throws an error
This is currently implemented in Octave. Can someone check these in a
current version of Matlab to see if this is still true?
And does the same hold for empty structs and empty cell arrays?
[cell(), struct()] %% should return a cell array
[struct(), cell()] %% does this error or return a cell array?
Thanks,
--
mike
- help with cell and struct concatentation in Matlab,
Mike Miller <=