Loading a .csv into a script
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
José-Luis
el 10 de Oct. de 2014
Please read the documentation. The function csvread() does what you want.
doc csvread
Categorías
Más información sobre Large Files and Big Data en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!