On 9-Jan-2011, Ben Abbott wrote:
| Has this unexpected behavior been discussed before.
|
|
| >> a = ['a', 'b', {}]
|
| a = 'a' 'b'
|
| >> whos a
| Name Size Bytes Class Attributes
| a 1x2 228 cell
|
| Apparently, Matlab does an implicit conversion to cell strings.
|
| I assume we don't want to copy this, but I thought I'd ask.
I don't recall discussing this, but that doesn't mean much these
days...
I would not want to insert a special case just for this, and from this
one example, I have no idea what the general rule should be.
Is it documente somewhere?
I guess the implementation can't be
horzcat (horzcat ('a', 'b'), {})
because then 'a' and 'b' would not appear as separate elements.
Are there constraints on the order? What about
[{}, 'a', 'b']
['a', {}, 'b']