Loading a .csv into a script
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
José-Luis
am 10 Okt. 2014
Please read the documentation. The function csvread() does what you want.
doc csvread
Kategorien
Mehr zu Large Files and Big Data finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!