This MATLAB function reads numeric data from input string str into a 1-by-N vector A, where N equals the number of whitespace-separated numbers in str.
www.mathworks.com