Azzera filtri
Azzera filtri

How to combine two cell arrays?

14 visualizzazioni (ultimi 30 giorni)
Zeynab Mousavikhamene
Zeynab Mousavikhamene il 22 Feb 2020
Risposto: madhan ravi il 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?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Cell Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by