MATLAB: Question about single digits.

single digits

Hi everyone. Is there any function that converts "complex" number for example [123] to constituent elements [1 2 3] ?

Best Answer

Its not the most elegant, but this works:
A = str2num(num2str(123)')'