MATLAB: Merging of cell data .

a =
[2] [3] [4] [5] [6]
a is of type cell want output of type cell like
out= [23456]
please send me general code for any order of a…and/or if the number consist of sentence.
thanks in advance.

Best Answer

a ={ [2] [3] [4] [5] [6]}
b=str2double(strjoin(cellfun(@num2str,a,'un',0),''))