Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Comma list with leading cell
Date: Sat, 23 May 2009 11:45:02 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 13
Message-ID: <gv8nju$kvn$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1243079102 21495 172.30.248.38 (23 May 2009 11:45:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 23 May 2009 11:45:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:541982


This syntax works it is beyond my expectation! Is it documented somewhere?
 
>> [{} 1 2 3]

ans = 

    [1]    [2]    [3]

% To me the correct syntax is

>> [{} {1 2 3}]

Bruno