×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Can't LOAD data file into Matlab!

Can't LOAD data file into Matlab!

Can't LOAD data file into Matlab!

(OP)
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?

RE: Can't LOAD data file into Matlab!

please try
load data1.dat -ascii

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources