converting two cells into one

2 vues (au cours des 30 derniers jours)
vish
vish le 8 Fév 2011
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.

Réponse acceptée

Vieniava
Vieniava le 8 Fév 2011
Consider following code:
a={'4'; '8'};
b={'the' ; 'be'};
spaces={' ' ; ' '};
c=strcat(b,spaces,a)
EDIT:
calternative=[b a];
  1 commentaire
vish
vish le 8 Fév 2011
I need the data in separate columns in the cell. Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by