Assignment error when loading cvs file

4 vues (au cours des 30 derniers jours)
Nima Rezaeian
Nima Rezaeian le 20 Juin 2017
Commenté : Nima Rezaeian le 20 Juin 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 commentaires
KSSV
KSSV le 20 Juin 2017
How your txt file is?
Nima Rezaeian
Nima Rezaeian le 20 Juin 2017
Modifié(e) : Nima Rezaeian le 20 Juin 2017
It's a comma-value separated .txt file.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 20 Juin 2017
You have a problem with your previous line, such as a missing ]
  1 commentaire
Nima Rezaeian
Nima Rezaeian le 20 Juin 2017
Thanks, it worked.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Files and Folders dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by