Borrar filtros
Borrar filtros

converting two cells into one

1 visualización (últimos 30 días)
vish
vish el 8 de Feb. de 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.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by