x=length(a);y=length(b);
i=1;n=1;
while i<=x
k=strfind(b,a(i));
if k~=[]
c=b(k(1):end);
r(i)=a(i);
end
while n
if l~=[]
c=c(l(1):end);
r(i)=[r(i),a(n+1)];
n=n+1;
end
end
while i>1
e(i)=length((i));
if e(i)
else e(i)>=e(i-1);
result=r(i);
end
end
i=i+1;
end
disp(result)
请问哪里出错了,求改正