Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
is this a problem with the file?
조회 수: 1 (최근 30일)
이전 댓글 표시
here the screen shot,tell me what is problem?
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 8월 21일
You used dir() against a directory and then tried to open a file name you saw in the directory without including the directory in the file name to open.
You should use a code structure similar to:
projectdir = 'E:\scorpioncensus\reports';
dinfo = dir( fullfile(projectdir, '*.txt') );
for K = 1 : length(dinfo)
thisfile = fullfile(projectdir, dinfo(K).name);
fid = fopen(thisfile, 'rt');
data = textscan(fid, '%f%f%f');
fclose(fid);
... do something with the data
end
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!