MATLAB: Concatenation

concatenation

Hi Everyone!
Hi would like to concatenate the entries of non-negative matrix into one single number! is that possible? any Ideas?
Here is an example:
a=[6 0 11; 15 5 10; 10 12 13]
and I want it to become:
a=[6011;15510;101213]
any suggestions?
Thank you in advance! all the best!

Best Answer

a = str2double(arrayfun(@(x)sprintf('%d',a(x,:)),(1:size(a,1))','un',0))
variant
a = str2double(regexprep(cellstr(num2str(a)),' ',''))