error in fopen when use dlmread
조회 수: 1 (최근 30일)
이전 댓글 표시
file1 = dlmread('Matched_TNG20100518CISI_N.txt','', 5, 0) fid = fopen(file1, 'r') Axcel1=fscanf(file1,'%g %g %g %g %g\n',[4,Inf])';
Error using fopen File identifier must be an integer-valued scalar of type double.
Any one can help me?
댓글 수: 0
답변 (1개)
Star Strider
2018년 10월 11일
Simply use the one line:
file1 = dlmread('Matched_TNG20100518CISI_N.txt','', 5, 0);
Then, check to see what ‘file1’ contains. It should be a matrix of numeric data that you can access directly.
댓글 수: 4
Star Strider
2018년 10월 12일
My pleasure.
If my Answer helped you solve your problem, please Accept it!
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!