1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
r=[445100.000000 6686925.000000 -14.292036
445112.500000 6686925.000000 -101.512749
445125.000000 6686925.000000 -267.692780
445137.500000 6686925.000000 -89.545677
445150.000000 6686925.000000 -93.365463
445012.500000 6686937.500000 -899.299683
445025.000000 6686937.500000 -1176.459839
445037.500000 6686937.500000 -1206.381470
444900.000000 6686962.500000 -23.203894 ];
index=find(diff(r(:,2))~=0);
s=[diff([0; index]);size(r,1)-index(end)];
l=1;
m=1;
res=zeros(length(index)+1,max(s));
for i=1:length(index)+1
if s(l)~=max(s)
for j= fix(((max(s)-s(l))/2))+mod(max(s)-s(l),2)+1 :s(l)+fix(((max(s)-s(l))/2))+mod(max(s)-s(l),2)
res(i,j)=r(m,3);
m=m+1;
end
else
for j= 1:max(s)
res(i,j)=r(m,3);
m=m+1;
end
end
l=l+1;
end |
Partager