fopen error using text file
이전 댓글 표시
I have the code below but when I run, I get a textscan error. I am not sure what else I can try....I know that my text file is in my current MATLAB folder so the path should be okay...
ExPath = [pwd,'/watershed.txt'];
fid=fopen(ExPath)
data = textscan(fid,'%d %d %d %f %f %f %f %f', 'headerlines',1);
Error using textscan
Invalid file identifier. Use fopen to generate a valid file identifier.
답변 (1개)
Star Strider
2021년 4월 28일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!