Loading a .csv into a script
Show older comments
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.
Accepted Answer
More Answers (1)
José-Luis
on 10 Oct 2014
Please read the documentation. The function csvread() does what you want.
doc csvread
Categories
Find more on Large Files and Big Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!