From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: return indices
Date: Sun, 10 Oct 2010 20:02:04 +0000 (UTC)
Organization: Procter &#38; Gamble Co
Lines: 1
Message-ID: <i8t63r$mop$>
References: <i8t188$oo3$> <i8t541$lgl$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1286740924 23321 (10 Oct 2010 20:02:04 GMT)
NNTP-Posting-Date: Sun, 10 Oct 2010 20:02:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1343420
Xref: comp.soft-sys.matlab:677267

Looks like Roger found the same inconsistency as me, and solved it by putting the additional stuff on an additional row.  I suggest you go with his code - it is essentially what I was going after (until I hit the inconsistency), mine is just a bit more verbose while his is more compact.