You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
316 B

1 year ago
function outcurves= correctOrder(incurves)
len=size(incurves,1)/3;
for i=1:len
pt=incurves((3*(i-1)+1):(3*i),end);
dummy=[nan , nan, nan];
ctr=i;
while pt~=dummy
ctr=ctr+1;
dummy=incurves((3*(ctr-1)+1):(3*ctr),1);
dummyend=
end
swppt=incurves((3*(ctr-1)+1):(3*ctr),:);