Matlab fail to read csv data with csvread()

14 visualizaciones (últimos 30 días)
kairui wang
kairui wang el 1 de Feb. de 2019
Comentada: kairui wang el 1 de Feb. de 2019
I tried using csvread() function to read a csv file to get the data, which is in the same folder as the script.
M = csvread('JumperDataWin_Fixed.csv');
But I got these errors
Error using dlmread (line 122)
The file 'JumperDataWin_Fixed.csv' could not be opened because: Invalid argument
Error in csvread (line 48)
m=dlmread(filename, ',', r, c);
Error in LAB1 (line 8)
M = csvread('JumperDataWin_Fixed.csv');
Could anyone explain what's wrong with my codes?
Thanks!
Updated: attach the file
  11 comentarios
Walter Roberson
Walter Roberson el 1 de Feb. de 2019
What shows up if you use
ls
? Perhaps there is not an exact match for the file name.
kairui wang
kairui wang el 1 de Feb. de 2019
I solved it. The reason is that there're some strange symbols in the the name of folder which contains the data. Matlab can't recognize the symbol so it generate a random symbol to replace it. Thank you guys!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Environment and Settings 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