Assignment error when loading cvs file

5 Ansichten (letzte 30 Tage)
Nima Rezaeian
Nima Rezaeian am 20 Jun. 2017
Kommentiert: Nima Rezaeian am 20 Jun. 2017
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 Kommentare
KSSV
KSSV am 20 Jun. 2017
How your txt file is?
Nima Rezaeian
Nima Rezaeian am 20 Jun. 2017
Bearbeitet: Nima Rezaeian am 20 Jun. 2017
It's a comma-value separated .txt file.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Files and Folders finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by