Assignment error when loading cvs file

5 views (last 30 days)
I'm trying to load a cvs .txt file into an array:
data = csvread('ex1data2.txt');
but I get the following error:
% code
Error: File: ex1_multi.m Line: 134 Column: 6
The expression to the left of the equals sign is not a valid target for an assignment.
end
  2 Comments
Nima Rezaeian
Nima Rezaeian on 20 Jun 2017
Edited: Nima Rezaeian on 20 Jun 2017
It's a comma-value separated .txt file.

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 20 Jun 2017
You have a problem with your previous line, such as a missing ]

More Answers (0)

Categories

Find more on Files and Folders in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!