Thread Subject: Can someone tell me what does this error mean?

Subject: Can someone tell me what does this error mean?

From: Lim Wei Long

Date: 26 Nov, 2009 03:04:21

Message: 1 of 6

??? Error using ==> load
Number of columns on line 9 of ASCII C:\matlab\data\Abc.dat Must be the same as previous lines.


i have already set the columns in my Dat file to be consistent at 60.However this error keeps popping out even when i have deleted that line.Can someone help me with this?

Subject: Can someone tell me what does this error mean?

From: dpb

Date: 26 Nov, 2009 03:06:32

Message: 2 of 6

Lim Wei Long wrote:
> ??? Error using ==> load Number of columns on line 9 of ASCII
> C:\matlab\data\Abc.dat Must be the same as previous lines.
>
>
> i have already set the columns in my Dat file to be consistent at
> 60.However this error keeps popping out even when i have deleted that
> line.Can someone help me with this?

It refers to number of _data_ columns (numbers/line) not the length of
the line in characters...

--

Subject: Can someone tell me what does this error mean?

From: Lim Wei Long

Date: 26 Nov, 2009 03:27:19

Message: 3 of 6

dpb <none@non.net> wrote in message <hekrc1$bl9$2@news.eternal-september.org>...
> Lim Wei Long wrote:
> > ??? Error using ==> load Number of columns on line 9 of ASCII
> > C:\matlab\data\Abc.dat Must be the same as previous lines.
> >
> >
> > i have already set the columns in my Dat file to be consistent at
> > 60.However this error keeps popping out even when i have deleted that
> > line.Can someone help me with this?
>
> It refers to number of _data_ columns (numbers/line) not the length of
> the line in characters...
>
> --

i have 7 columns of data and all the lines before it are consistent..all lines contains 7 columns of data

Subject: Can someone tell me what does this error mean?

From: dpb

Date: 26 Nov, 2009 03:39:12

Message: 4 of 6

Lim Wei Long wrote:
> dpb <none@non.net> wrote in message <hekrc1$bl9$2@news.eternal-september.org>...
>> Lim Wei Long wrote:
>>> ??? Error using ==> load Number of columns on line 9 of ASCII
>>> C:\matlab\data\Abc.dat Must be the same as previous lines.
>>>
>>>
>>> i have already set the columns in my Dat file to be consistent at
>>> 60.However this error keeps popping out even when i have deleted that
>>> line.Can someone help me with this?
>> It refers to number of _data_ columns (numbers/line) not the length of
>> the line in characters...
>>
>> --
>
> i have 7 columns of data and all the lines before it are
> consistent..all lines contains 7 columns of data

Going to need to see a sample test case and (small) data file that shows
problem then...

--

Subject: Can someone tell me what does this error mean?

From: dpb

Date: 26 Nov, 2009 03:40:34

Message: 5 of 6

dpb wrote:
...
> Going to need to see a sample test case and (small) data file that shows
> problem then...

Oh, one other thought...possibly you've edited the file but not saved it
or are loading a different file than you think perhaps????

--

Subject: Can someone tell me what does this error mean?

From: dpb

Date: 26 Nov, 2009 14:22:21

Message: 6 of 6

dpb wrote:
> dpb wrote:
> ...
>> Going to need to see a sample test case and (small) data file that
>> shows problem then...
>
> Oh, one other thought...possibly you've edited the file but not saved it
> or are loading a different file than you think perhaps????

And one last one -- no, actually, a couple...

If this is indeed and ASCII file, perhaps you've got tabs and multiple
tabs between a field in one line but not other(s) that are being
recognized as field delimiters???

Also, probably a stretch given your previous comments but--did you by
any chance SAVE the file and now trying to read it back as ASCII when it
is actually a .MAT file been renamed???

If none of these help then will need a real sample not just description...

--

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com