From: karunakar reddy pottim on
I downloaded some data from a website for my research work. The data includes a dat file. When I tried loading the file into my workspace, it shows an error,
"Number of columns on line 2 of ASCII file C:\Users\pottem\Desktop\course\Dr.Kuo\biomedical signal processing\data\a01.dat
must be the same as previous lines."

How can I come over the problem?

Thanks
Karunakar
From: ade77 on
I work with .dat file at work a lot. Infact, I just loaded one to the MATLAB workspace now without any problem.

Try and use the import wizard. (on the File menu, import data, then follow the prompt).


> I downloaded some data from a website for my research work. The data includes a dat file. When I tried loading the file into my workspace, it shows an error,
> "Number of columns on line 2 of ASCII file C:\Users\pottem\Desktop\course\Dr.Kuo\biomedical signal processing\data\a01.dat
> must be the same as previous lines."
>
> How can I come over the problem?

I work with .dat file at work a lot. Infact, I just loaded one to the MATLAB workspace now without any problem.

Try and use the import wizard. (on the File menu, import data, then follow the prompt).
From: karunakar reddy pottim on
"ade77 " <ade100a(a)gmail.com> wrote in message <hct4cf$h0s$1(a)fred.mathworks.com>...
> I work with .dat file at work a lot. Infact, I just loaded one to the MATLAB workspace now without any problem.
>
> Try and use the import wizard. (on the File menu, import data, then follow the prompt).
>
>
> > I downloaded some data from a website for my research work. The data includes a dat file. When I tried loading the file into my workspace, it shows an error,
> > "Number of columns on line 2 of ASCII file C:\Users\pottem\Desktop\course\Dr.Kuo\biomedical signal processing\data\a01.dat
> > must be the same as previous lines."
> >
> > How can I come over the problem?
>
> I work with .dat file at work a lot. Infact, I just loaded one to the MATLAB workspace now without any problem.
>
> Try and use the import wizard. (on the File menu, import data, then follow the prompt).

I dont think my problem has been solved yet!
From: ade77 on
If it does not work, that means your dat file has a problem. why don't you open it in a regular program, and see if the contents of the file itself makes sense.
Another option is to copy and paste into like excel. then open in MATLAB.


"karunakar reddy pottim" <reddykarunakar211(a)gmail.com> wrote in message <hct888$bp4$1(a)fred.mathworks.com>...
> "ade77 " <ade100a(a)gmail.com> wrote in message <hct4cf$h0s$1(a)fred.mathworks.com>...
> > I work with .dat file at work a lot. Infact, I just loaded one to the MATLAB workspace now without any problem.
> >
> > Try and use the import wizard. (on the File menu, import data, then follow the prompt).
> >
> >
> > > I downloaded some data from a website for my research work. The data includes a dat file. When I tried loading the file into my workspace, it shows an error,
> > > "Number of columns on line 2 of ASCII file C:\Users\pottem\Desktop\course\Dr.Kuo\biomedical signal processing\data\a01.dat
> > > must be the same as previous lines."
> > >
> > > How can I come over the problem?
> >
> > I work with .dat file at work a lot. Infact, I just loaded one to the MATLAB workspace now without any problem.
> >
> > Try and use the import wizard. (on the File menu, import data, then follow the prompt).
>
> I dont think my problem has been solved yet!