[求助]分段截取二维数组
K(1:n1(1),:)=K1(1:n1(1),:);GG(1:n1(1),:)=GG1(1:n1(1),:);
RR(1:n1(1),:)=RR(1:n1(1),:);
K(n1(1)+1:n1(2),:)=K2(n1(1)+1:n1(2),:);
GG(n1(1)+1:n1(2),:)=GG2(n1(1)+1:n1(2),:);
RR(n1(1)+1:n1(2),:)=RR2(n1(1)+1:n1(2),:);
K(n1(2)+1:n1(3),:)=K3(n1(2)+1:n1(3),:);
GG(n1(2)+1:n1(3),:)=GG3(n1(2)+1:n1(3),:);
RR(n1(2)+1:n1(3),:)=RR3(n1(2)+1:n1(3),:);
K(n1(3)+1:n1(4),:)=K4(n1(3)+1:n1(4),:);
GG(n1(3)+1:n1(4),:)=GG4(n1(3)+1:n1(4),:);
RR(n1(3)+1:n1(4),:)=RR4(n1(3)+1:n1(4),:);
K(n1(4)+1:n1(5),:)=K4(n1(4)+1:n1(5),:);
GG(n1(4)+1:n1(5),:)=GG4(n1(4)+1:n1(5),:);
RR(n1(4)+1:n1(5),:)=RR4(n1(4)+1:n1(5),:);
如何实现,以前的太冗长,费时。找便捷的解法 还不如直接说你实现的功能
要读懂你的意思还要花n长时间
页:
[1]