|
Hi Judy,
I didn't have any problem reading all the numbers...
a=textread('file.ext','%d')
a =
116
2845
3555
4783
6748
7051
8420
11078
12540
16038
18066
21597
24390
28349
29880
Try to use textscan(fid, 'format')... Good Luck!
On Nov 20, 11:09 pm, "Judy " <sauwen...@gmail.com> wrote:
> I am using textread to read a file.ext with a bunch of numbers inside. It reads them all except for the last one! Does anyone know why? I also tried textread with a delimiter of \n and it still doesn't work...
>
> Here is a example of the numbers..
> 116
> 2845
> 3555
> 4783
> 6748
> 7051
> 8420
> 11078
> 12540
> 16038
> 18066
> 21597
> 24390
> 28349
> 29880
>
> Textread outputs only:
>
> 116
> 2845
> 3555
> 4783
> 6748
> 7051
> 8420
> 11078
> 12540
> 16038
> 18066
> 21597
> 24390
> 28349
>
> Thanks in advance~
|