reading a csv file
Mostra commenti meno recenti
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
Risposte (1)
Star Strider
il 14 Gen 2016
1 voto
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 Commenti
fereshteh izadi
il 14 Gen 2016
Star Strider
il 14 Gen 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
il 14 Gen 2016
Star Strider
il 14 Gen 2016
My pleasure.
Categorie
Scopri di più su Text Files in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!