converting two cells into one

I have two cells :
a = 4
8
b=
the
be
How do I make them one cell . ? ie.
c=
the 4
be 8
Thank you.

 Accepted Answer

Consider following code:
a={'4'; '8'};
b={'the' ; 'be'};
spaces={' ' ; ' '};
c=strcat(b,spaces,a)
EDIT:
calternative=[b a];

1 Comment

I need the data in separate columns in the cell. Thanks

Sign in to comment.

More Answers (0)

Categories

Asked:

on 8 Feb 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!