Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't LOAD data file into Matlab!

Status
Not open for further replies.

IndiJones

Computer
May 10, 2004
1
I have a simple tab spaced data file (data1.dat) and need to load it into Matlab. The dat file is like this for an example:
1 5.35
2 3.68
3 3.54
4 2.39
5 2.06
6 1.48
7 0.63
8 1.09
9 1.75
10 2.66
11 5.34
12 6.13

But whenever I write the command:

>> load data1.dat

I get the following error message:

QUOTE

??? Error: File: C:\MATLAB6p5p1\toolbox\compiler\load_mat\@char\load.m Line: 32 Column: 30
Missing operator, comma, semicolon, or white space.

UNQUOTE

Please note that all the paths to the directories have been correctly set. What could be wrong?
 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor