reading a csv file
Afficher commentaires plus anciens
hi,
I have a csv file as I shared the link with you. I am going to read my file but I don't how
please someone help me to read my file. first my file contained the rownamesa and colnames that i removed manually.
<https://drive.google.com/file/d/0BwOX04QQkaXTZHJLbmtWakdIMGc/view?usp=sharing my file address>
thank you
Réponses (1)
Star Strider
le 14 Jan 2016
1 vote
I get an error when I try to access that link. Attach your file to your Question here using the ‘paperclip’ icon, and be sure to complete both the ‘Choose file’ and ‘Attach file’ steps.
4 commentaires
fereshteh izadi
le 14 Jan 2016
Star Strider
le 14 Jan 2016
It seems not comma-delimited. If the lines that appear in your Comment are the actual data in the file, the delimiter is a semicolon (;).
If it has only numeric data, see if dlmread will work with it:
data = dlmread(filename, ';');
If you know how many columns of data there are in the file and what they contain (strings, floating-point, etc., number of header lines) I can write a textscan call that could work. Without the file itself (or a representative sample of it), that’s the best I can do.
fereshteh izadi
le 14 Jan 2016
Star Strider
le 14 Jan 2016
My pleasure.
Catégories
En savoir plus sur Text Files dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!