フィルターのクリア

How can i read a csv file

4 ビュー (過去 30 日間)
Lisa Justin
Lisa Justin 2012 年 10 月 15 日
How can i read a csv file. i used fopen but it gives a value of -1
A=fopen('slip.csv')

採用された回答

Walter Roberson
Walter Roberson 2012 年 10 月 15 日
csv files are text files, usually written in ASCII or ISO-8896-1 (which is compatible with ASCII).
  4 件のコメント
Lisa Justin
Lisa Justin 2012 年 10 月 18 日
thanks
Lisa Justin
Lisa Justin 2012 年 10 月 18 日
Hi Walter, i also want to creat a file list of the large csv data i have. when i write dir *.csv i get all data displayed but when i try to write a script say
dir=('C:\Lisajustin\Vib')
Listdir=sprintf('%d%d',dir, '\*.csv');
i get error message ??? Error using ==> sprintf Function is not defined for 'struct' inputs.
what could be the problem

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

その他の回答 (1 件)

Sachin Ganjare
Sachin Ganjare 2012 年 10 月 16 日
You can use 'csvread' function. Refer link below for further details:
Hope it helps!!!

カテゴリ

Help Center および File ExchangeLow-Level File I/O についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by