I was wondering if there is a nice way in which I can convert my 2D cell array into a 2D char matrix.
The cell array looks like this:
'test' 'me' '0' '22'
'tester' 'me' '14' '241'
'test' 'you' '25' '1'
And now I would like to put spaces between the columns and make the whole thing a char array. Meaning I want either this:
'test me 0 22 '
'tester me 14 241'
'test you 25 1 '
or this
'test me 0 22'
'tester me 14 241'
'test you 25 1'
Could you help me out?
I tried char()
but it doesn't care that the cell array is 2D and just creates one row for each element in the cell array.
EDIT: In case someone wants to get back a cell array of the concatenated rows look at this Combine Columns of Cell Array Matlab
Many thanks!