求教,只做隔夜单的程序为什么不执行

如题所述

试一下我的修改:
work_3(nmat); %多行两列的矩阵
A_1 = A(:,1);
A_2 = A(:,2);
s1 = numel(unique(A_2)); % length(unique(A_2));
count = hist(A_2,unique(A_2));
p = 1; k = 1; q = count(1);
D = work_5(A_1,p,q);
for j = 1:(s1-1)
if (length(D) >= 3)
output = D;
sprintf('%4d',output);
D = [];
p = k + count(j);
q = q + count(j+1);
D = work_5(A_1,p,q);
k = p;
else p = p; q = q + count(j+1);
D = [];
D = work_5(A_1,p,q);
k = k + count(j);
end
end
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答
大家正在搜