reading a csv file
古いコメントを表示
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
回答 (1 件)
Star Strider
2016 年 1 月 14 日
1 投票
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 件のコメント
fereshteh izadi
2016 年 1 月 14 日
Star Strider
2016 年 1 月 14 日
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
2016 年 1 月 14 日
Star Strider
2016 年 1 月 14 日
My pleasure.
カテゴリ
ヘルプ センター および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!