请大家指点一下
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);
该函数调用不了,高手帮忙!