How to combine two cell arrays?

4 visualizaciones (últimos 30 días)
Zeynab Mousavikhamene
Zeynab Mousavikhamene el 22 de Feb. de 2020
Respondida: madhan ravi el 22 de Feb. de 2020
I need to combine two cell arrays:
cellarray1= {'P'} {'A'} {'Pi'} {'Ab'} {'Pa'}
and
cellarray2={'e'}
I want to make this cell array:
newcellarray= {'e','P','A','Pi','Ab','Pa'}
I used:
{{'cell_combination'},cellarray1(1:end)}
but did not work. any suggestion?

Respuesta aceptada

madhan ravi
madhan ravi el 22 de Feb. de 2020
newcellarray = [cellarray2,cellarray1]

Más respuestas (0)

Categorías

Más información sobre Cell Arrays 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