标题:请大家指点一下
只看楼主
handsomesun
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-8-6
 问题点数:0 回复次数:0 
请大家指点一下

function ttt(fname1,fname2,sss)
% Find the line including a particular string.
%
% fname1: source file name;
% fname2: destination file name;
% sss : the particular string;
fid=fopen('fname1');
fidnew = fopen('fname2','w');
while 1
tline = fgetl(fid);
a = strfind(tline,'sss');
if ~ischar(tline), break, end
if isempty(a)
fprintf(fidnew,tline);
fprintf(fidnew,'\n');
end
end
fclose(fid);fclose(fidnew);
该函数调用不了,高手帮忙!

2006-08-09 21:43



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-83102-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.047022 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved