how to open an csv file using xlsread

Hello
I am trying to read and analyze a .csv file using fopen and xlsread
I am using character to do that
I am receiving to kind of errors 1.Error using xlsread (line 245) Unable to read XLS file/path/file.csv. File is not in recognized format.
and 2. Error in file (line 4) raw = xlsread('file')
I have numeric data with the first line as the readers of the worksheet
What can I do?

回答 (1 件)

Rik
Rik 2018 年 7 月 13 日

1 投票

If you want to read a csv file, there is a function that is designed to do that: csvread.

3 件のコメント

Ailis Aimylia
Ailis Aimylia 2020 年 12 月 2 日
the command replied :
Undefined function or variable 'cvsread'.
what should i i do or any suggestion to solve this problem.
Rik
Rik 2020 年 12 月 2 日
That depends. What release are you using?
Walter Roberson
Walter Roberson 2020 年 12 月 2 日
Rik earlier recommended csvread but you tried cvsread with the V and S exchanged.

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

カテゴリ

ヘルプ センター および File ExchangeWorkspace Variables and MAT Files についてさらに検索

質問済み:

2018 年 7 月 13 日

コメント済み:

2020 年 12 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by