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!