MATLAB: Converting a string array into a number array helpMATLAB Please how can l convert '123456789' to [ 1 2 3 4 5 6 7 8 9] in MATLAB Best Answer #Editednum_str='123456789'num_str - '0'Result:ans = 1 2 3 4 5 6 7 8 9 Related SolutionsMATLAB: Adding matrix values into a string a=[1 2 3 4 5 6 7 8 9] ;str = char(a+'0')str = '123456789' MATLAB: Problem in str2num X = str2num( '12e-3 5.9e-3 -8.1e-3 2.56e-3; 5 11.2 17.9 33' ) %edited after kssv's comment Related QuestionConvert number to string problemCombine a cell array of cell arrays to a cell array of numbersArray
Best Answer