Assignment error when loading cvs file

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 comentarios

KSSV
KSSV el 20 de Jun. de 2017
How your txt file is?
Nima Rezaeian
Nima Rezaeian el 20 de Jun. de 2017
Editada: Nima Rezaeian el 20 de Jun. de 2017
It's a comma-value separated .txt file.

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 20 de Jun. de 2017

1 voto

You have a problem with your previous line, such as a missing ]

Más respuestas (0)

Categorías

Más información sobre Files and Folders en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 20 de Jun. de 2017

Comentada:

el 20 de Jun. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by