How do you open .csv files?
조회 수: 6 (최근 30일)
이전 댓글 표시
For my dissertation, my data is in a .csv file format, yet I've tried using this code to read in data. I don't understand what is going wrong. Matlab says there is a problem with the usage line, but what? The other I have done is put the name of the file. Could anyone solve my simple problem.
if (nargin ~= 1 ) usage(); end
fd = fopen(fname,'data.csv');
if (fd == -1)
msg = sprintf('File %s not opened\n',fname);
disp(msg);
return;
end
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!