how to open an csv file using xlsread

18 visualizaciones (últimos 30 días)
Catarina Boffino
Catarina Boffino el 13 de Jul. de 2018
Comentada: Walter Roberson el 2 de Dic. de 2020
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?

Respuestas (1)

Rik
Rik el 13 de Jul. de 2018
If you want to read a csv file, there is a function that is designed to do that: csvread.
  3 comentarios
Rik
Rik el 2 de Dic. de 2020
That depends. What release are you using?
Walter Roberson
Walter Roberson el 2 de Dic. de 2020
Rik earlier recommended csvread but you tried cvsread with the V and S exchanged.

Iniciar sesión para comentar.

Categorías

Más información sobre Workspace Variables and MAT Files en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by