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 个评论

How your txt file is?
It's a comma-value separated .txt file.

请先登录,再进行评论。

 采纳的回答

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

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Files and Folders 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by