Reding csv file which contains numbers and strings

Hi
I have a csv file test.csv with some thousands of lines each with three columns in the following style:
Wqckwb Pqbbxx Oq Ptjnfbdqa Gqpqsn Bdqoxfn 519908 519
cms nmyqjnmqsbdqgq pnqqfn g fxtfeqq fqmgqpqsn 411990 411
Unfortunately I can not read the file in with csv - what exactly can I do? Thanks

 採用された回答

dpb
dpb 2014 年 11 月 27 日

1 投票

Try importdata but it's not absolutely guaranteed. With the regular numeric format it should be able to figure it out.
But, if it can't successfully read the first column as a text header then textscan or fscanf are your friends....

1 件のコメント

MiauMiau
MiauMiau 2014 年 11 月 27 日
importdata worked perfectly indeed! thanks so much!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLarge Files and Big Data についてさらに検索

タグ

質問済み:

2014 年 11 月 27 日

コメント済み:

2014 年 11 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by