From: james bejon on
Dear All, Suppose I have a {1x2} cell array containing a {3x1} and a {4x1} cell, both of which containing strings. Is there a nifty way of listing these contents (as a {7 x 1} cell, that is)? Or perhaps as a {4x2} with an empty cell in the corner?
From: Doug Schwarz on
james bejon wrote:
> Dear All, Suppose I have a {1x2} cell array containing a {3x1} and a
> {4x1} cell, both of which containing strings. Is there a nifty way of
> listing these contents (as a {7 x 1} cell, that is)? Or perhaps as a
> {4x2} with an empty cell in the corner?

If your 1x2 cell is called C then

cat(1,C{:})

will do it.

--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.
From: james bejon on
That's nice. Thanks very much.