I have 3 cell arrays of some strings cell1, cell2 and cell3. I want to save them in one cell matrix.If the column size of each cell are col1 col2 and col3. I want to create one cell with size (max(col1,col2,col3)*3)).How can I?
cellmarix{:,1}=cell1;
cellmarix{:,2}=cell2;
cellmarix{:,3}=cell3;
but this created a cell of cells of size (1*3).
I also used
cellmatrix={cell1,cell2,cell3};
but the result was the same(1*3) cell of cells.
for example if I have
cell1={
'uzi'
'julian'
'ahyden'
'kwayne'
'riel'
'gazook'
'mustapha'
}
cell2={
'negro'
'kris'
'sascha'
'jimw'
'andi'
'andrei'
}
cell3={
'joncruz'
'youngsd'
'notzed'
'werner'
'cactus'
'Iain'
'faassen'
}
The result is :
cell_all={
'uzi' 'negro' 'joncruz'
'julian' 'kris' 'youngsd'
'ahyden' 'sascha' 'notzed'
'kwayne' jimw' 'werner'
'riel' 'andi' 'cactus'
'gazook' 'andrei' 'Iain'
'mustapha' [] 'faassen'
}
cellmatrix={cell1;cell2;cell3}
? - Dan