RT
t=s;
for i=length(s)-1:-1:1
t=[t s(i)]; %将23级面积全部合并为一数组
end
nn=squre/7; %平均分割时的面积
ss=0;
w=30000; %误差设置的初始值
sss=[];
while length(sss)~=7
w=w-1000;
for i=1:23
ss=ss+t(i);
if nn-w<=ss<=nn+w
sss=union(sss,ss);
ss=0;
end
end
end
sss %油道分割的各级面积