Loading a .csv into a script
Afficher commentaires plus anciens
For a project, I have been given a script that requires I load a .csv file into in order for me to run it.
fid = fopen(csv_filename); line = fgetl(fid); n = 0;
I'm new to programming in general and don't know whether I am supposed to import via the command window or actually type the file name into the script and run.
Réponse acceptée
Plus de réponses (1)
José-Luis
le 10 Oct 2014
Please read the documentation. The function csvread() does what you want.
doc csvread
Catégories
En savoir plus sur Large Files and Big Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!