filecontent = fileread('C:\Users\Yong Cho\Documents\OSFolder\test.txt');
values = reshape( str2double(regexp(filecontent, '\d+(\.\d+)?', 'match')), 2, []) .' ;
Note: this code does not attempt to handle negative numbers, and does not attempt to handle exponential format. It also expects that when a decimal point is present that there will be digits after that (notice the 0 is not 0. or 0.0 in the text, so whatever is producing this is not putting in decimal point for integers.)
Best Answer