MATLAB: How to put text into an array

arraytext;

Hi all,
I have a big text right now and I wish to put every line as an array… could someone help?
201403 0.000 8.333 0.00 0.00
So this is one of the lines of my text, and I wish to sort it as an array like
2014 03 0.000 8.333 0.00 0.00
Can anybody help please?
Thanks!

Best Answer

Hint:
>> str = '201403 0.000 8.333 0.00 0.00';
>> cac = textscan( str, '%4f%2f%f%f%f%f', 'CollectOutput', true )
cac =
[1x6 double]
>> cac{:}
ans =
1.0e+03 *
2.0140 0.0030 0 0.0083 0 0