Loading a .csv into a script
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (1)
José-Luis
il 10 Ott 2014
Please read the documentation. The function csvread() does what you want.
doc csvread
Categorie
Scopri di più su Data Import and Analysis in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!