Issues with xlsread (of a csv file) importing an empty dataset

3 vues (au cours des 30 derniers jours)
Kristian Opsahl
Kristian Opsahl le 9 Fév 2019
Commenté : madhan ravi le 9 Fév 2019
I have issues with using xlsread with the attached csv file. My firend had no issues importing it, but when I am trying with the same code, just
data = xlsread('filename');
my output gives an empty dataset for data [ ]. I tired on both my laptop and stationary and getting the same issue.
Anyone who can help enlighten me with my error?
Much appreciated

Réponses (1)

madhan ravi
madhan ravi le 9 Fév 2019
Modifié(e) : madhan ravi le 9 Fév 2019
Use readtable() to read the file:
data = readtable('Vix_SP500.csv');
% ^^^^^^^^^^^^^---- this is your filename
  3 commentaires
madhan ravi
madhan ravi le 9 Fév 2019
Modifié(e) : madhan ravi le 9 Fév 2019
I am sorry I won't be able to answer that , I use Mac so I use readtable() to read .csv and excel files.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by