have you tried doing textscan
with %s %s %s %s %s %s
and using str2double
to convert the resulting cell array to numbers
f = fopen('file.txt');
raw = textscan(f, '%s %s %s %s %s %s');
data = [];
for k = 1:6
data = [data str2double(raw{k})];
end