fopen gives error msg for a binary file
조회 수: 9 (최근 30일)
이전 댓글 표시
I have a set of binary files loaded from a old hard drive that I can see using binary-file-viewer program. Yet, the code
[Fid,message] = fopen(fnames.name,'r');
generates Fid=-1 and error message "no such file _ _ _". I can see the filename and other characteristics in matlab command windows! What's strange is that if I point the directory to a different set of binary files, all is well! Please note that the filenames in both cases are about 18 to 21 characters long and suffix is .dat in both cases. Completely stumped!
댓글 수: 0
답변 (1개)
James Tursa
2017년 2월 23일
편집: James Tursa
2017년 2월 23일
Are there any funny non-displaying characters in the file names? E.g., what does this show:
d = dir;
d = [d.name];
any(d<' ')
or
dir(fnames.name)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!