MATLAB: Multiple digit number in to individual digits

matricesmatrixmatrix manipulation

i want to change the number 1123 in 1 1 2 3, want to split combine number into into individual numbers

Best Answer

a=1234
b=str2double(regexp(num2str(a),'\d','match'))