Let's say some numeric data is not delimited, buth we can delimit it based on their location. For example, I would like to read the following data using textscan:
950 99810251026 999 496 951 999102610271000 785 9521000102710281001 497 9531001102810291002 49810001061108410851062 43810011062108510861063 439
my code is:
cell2mat(textscan(fid, '%4f%4f%4f%4f%4f%4f'));
and the result is:
950 9981 251 26 999 496 951 9991 261 271 0 7859521 1 271 281 1 4979531 11 281 291 2 4981000 1061 1084 1085 1062 4381001 1062 1085 1086 1063 439
but what I wanted is:
950 998 1025 1026 999 496 951 999 1026 1027 1000 785 952 1000 1027 1028 1001 497 953 1001 1028 1029 1002 4981000 1061 1084 1085 1062 4381001 1062 1085 1086 1063 439
What's wrong with my code?
Best Answer