How to combine two cell arrays?

4 Ansichten (letzte 30 Tage)
Zeynab Mousavikhamene
Zeynab Mousavikhamene am 22 Feb. 2020
Beantwortet: madhan ravi am 22 Feb. 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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Cell Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by