Assignment error when loading cvs file

5 ビュー (過去 30 日間)
Nima Rezaeian
Nima Rezaeian 2017 年 6 月 20 日
コメント済み: Nima Rezaeian 2017 年 6 月 20 日
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 件のコメント
KSSV
KSSV 2017 年 6 月 20 日
How your txt file is?
Nima Rezaeian
Nima Rezaeian 2017 年 6 月 20 日
編集済み: Nima Rezaeian 2017 年 6 月 20 日
It's a comma-value separated .txt file.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2017 年 6 月 20 日
You have a problem with your previous line, such as a missing ]
  1 件のコメント
Nima Rezaeian
Nima Rezaeian 2017 年 6 月 20 日
Thanks, it worked.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFiles and Folders についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by