📄 codes.m
字号:
function CodeS(S)
global Xa
global T
global LSP
global LISi;global LISj;
global outline
global each
%Partition S into four equal subsets Sn
%if S(2)==1
% display(S(1));
%end
%shape(S); %按S对Xa进行重新排序
for i=1:4
Sn(1)=S(1)+(i-1)*S(2)/4;
Sn(2)=S(2)/4;
if max(abs(Xa(Sn(1):Sn(1)+Sn(2)-1)))>=T
outline=[outline,'1'];
if Sn(2)==1 %S是单点数
LSP=[LSP,Sn(1)];
if Xa(Sn(1))>0
outline=[outline,'+'];
else
outline=[outline,'-'];
end
else
CodeS(Sn);
end
else
outline=[outline,'0'];
LISi=[LISi,Sn(1)]; %添加Sn到LIS
LISj=[LISj,Sn(2)];
%each=each+1;
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -