how save diplayed data?
이전 댓글 표시
hi,
i have the following code:
fid=fopen('webscopG.txt');
for j=1:100000
tline = fgetl(fid);
i=i+1;
if ~ischar(tline), break, end
disp(tline);
end
fclose(fid);
this code will display tline as array, and that what I need . But how I can save this array of tline.
thanks
댓글 수: 2
Image Analyst
2012년 4월 6일
Save it how? In a different text file? In a .mat file?
huda nawaf
2012년 4월 12일
채택된 답변
추가 답변 (2개)
Thijs
2012년 4월 6일
fid=fopen('webscopG.txt');
for j=1:100000
tline{i} = fgetl(fid);
i=i+1;
if ~ischar(tline),
break,
end
disp(tline);
end fclose(fid);
does that work?
댓글 수: 1
Walter Roberson
2012년 4월 6일
No, you cannot have "fclose" in the same statement as "end".
Image Analyst
2012년 4월 6일
0 개 추천
Maybe open a second file for writing and write it out with fprintf()?
카테고리
도움말 센터 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!