Effacer les filtres
Effacer les filtres

How can i read a csv file

4 vues (au cours des 30 derniers jours)
Lisa Justin
Lisa Justin le 15 Oct 2012
How can i read a csv file. i used fopen but it gives a value of -1
A=fopen('slip.csv')

Réponse acceptée

Walter Roberson
Walter Roberson le 15 Oct 2012
csv files are text files, usually written in ASCII or ISO-8896-1 (which is compatible with ASCII).
  4 commentaires
Lisa Justin
Lisa Justin le 18 Oct 2012
thanks
Lisa Justin
Lisa Justin le 18 Oct 2012
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

Connectez-vous pour commenter.

Plus de réponses (1)

Sachin Ganjare
Sachin Ganjare le 16 Oct 2012
You can use 'csvread' function. Refer link below for further details:
Hope it helps!!!

Catégories

En savoir plus sur Low-Level File I/O dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by