I have problem in loading my dataset. I'm using MATLAB R2017a. It shows me an error like "Unknown text on line number 1 of ASCII file"

36 ビュー (過去 30 日間)
load('duplicate_dataset.csv');

回答 (1 件)

Cam Salzberger
Cam Salzberger 2017 年 9 月 18 日
Hello Sarath,
load is generally best used with either MAT files, or files saved from MATLAB using save, maybe with the -ascii or similar option. If you got this CSV file from anywhere other than MATLAB, I'd recommend either csvread or readtable to get the data into MATLAB. There are several other functions that are similar as well, or you can work interactively using the Import Tool.
-Cam
  2 件のコメント
sarath chandrika balaji
sarath chandrika balaji 2017 年 9 月 20 日
my file contains both alphanumeric values. i used csvread it is not working.can u suggest me with any other function?
Walter Roberson
Walter Roberson 2017 年 9 月 20 日
Try readtable() if you are using R2013b or later.

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

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by