Loading a .csv into a script
이전 댓글 표시
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.
채택된 답변
추가 답변 (1개)
José-Luis
2014년 10월 10일
Please read the documentation. The function csvread() does what you want.
doc csvread
카테고리
도움말 센터 및 File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!