From: Pr B on 11 Aug 2010 15:52 i have a cell and each block of the cell contains another 1x1 cell full of strings. example: a = {{{'a';'f'}} {{'x'}} {{'b'}} ; {{'c'}} [] {{'d'}}} so a{1,1}{1,1} is {'a';'f'}. how do i concatenate all the strings in each column of a so i get a new cell that stores all the strings in it? example: new_cell = {{'a';'f';'c'} {'x'} {'b';'d'}}
From: Pr B on 11 Aug 2010 15:58 should have posted my code: for i = 1:c for j = 1:r new_cell{1,i} = vertcat(a{r,c}{1,1}) end end
|
Pages: 1 Prev: msg -how to install mcc / mbuild Next: simulate jump process |