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".
类别
在 帮助中心 和 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!