How to combine two cell arrays?

4 vues (au cours des 30 derniers jours)
Zeynab Mousavikhamene
Zeynab Mousavikhamene le 22 Fév 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?

Réponse acceptée

madhan ravi
madhan ravi le 22 Fév 2020
newcellarray = [cellarray2,cellarray1]

Plus de réponses (0)

Catégories

En savoir plus sur Cell Arrays 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