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?

Answers (1)

Rik
Rik on 13 Jul 2018
If you want to read a csv file, there is a function that is designed to do that: csvread.

3 Comments

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

Sign in to comment.

Asked:

on 13 Jul 2018

Commented:

on 2 Dec 2020

Community Treasure Hunt

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

Start Hunting!