In matlab I want to convert this:
12345.6788993442355456789
into a vector
[1 2 3 4 5 6 7 8 8 9 9 3 4 4 2 3 5 5 4 5 6 7 8 9]
Also using num2str, you can do:
num2str
sol=arrayfun(@str2num,(sprintf('%f',23432.23432)),'UniformOutput',0) horzcat(sol{:}) ans = 2 3 4 3 2 2 3 4 3
Do you want to keep the information about where is the comma?