Está en la página 1de 2

clc,clear,clf

n=tan(pi/3);
h=sin(pi/6);
l=cos(pi/6);
cl=[99.01 91.85 80.00 70.13 67.15 59.99 55.81];
ag=[0.99 1.38 2.28 4.12 5.20 7.93 9.58];
cl1=[0.84 1.21 7.30 15.11 18.33 25.20 28.85];
ag1=[99.16 73.16 48.58 34.71 31.11 25.39 23.28];
AE=100-cl;AF=ag;
xa1=(AE-AF)/2+AF;ya1=(AE-AF)*l;
AE1=100-ag1;
AF1=cl1;
xb1=100-((AE1-AF1)/2+AF1);yb1=(AE1-AF1)*l;
x=[13.14790287
30.11512107
39.80006415
48.81412386
62.49003265];
y=[39.75
26.67
17.37
16.19
15.09];
Ae1=100-x;Af1=y;
xt1=((Ae1-Af1)/2+Af1);yt1=(Ae1-Af1)*l;
a1=[xa1(1) xb1(1)];b1=[ya1(1) yb1(1)];
a2=[xa1(2) xb1(2)];b2=[ya1(2) yb1(2)];
a3=[xa1(3) xb1(3)];b3=[ya1(3) yb1(3)];
a4=[xa1(4) xb1(4)];b4=[ya1(4) yb1(4)];
a5=[xa1(5) xb1(5)];b5=[ya1(5) yb1(5)];
a6=[xa1(6) xb1(6)];b6=[ya1(6) yb1(6)];
a7=[xa1(7) xb1(7)];b7=[ya1(7) yb1(7)];
x1=xb1(1)-(yb1(1)-ya1(1))*cot(pi/3);
x2=xb1(2)-(yb1(2)-ya1(2))*cot(pi/3);
x3=xb1(3)-(yb1(3)-ya1(3))*cot(pi/3);
x4=xb1(4)-(yb1(4)-ya1(4))*cot(pi/3);
x5=xb1(5)-(yb1(5)-ya1(5))*cot(pi/3);
x6=xb1(6)-(yb1(6)-ya1(6))*cot(pi/3);
x7=xb1(7)-(yb1(7)-ya1(7))*cot(pi/3);
xll=[x1 x2 x3 x4 x5 x6 x7];
for m=0:1:100
ax=m:0.1*h:50+h*m;
ay=(-m+ax)*n;
bx=m*h:0.1*h:m;
by=(m-bx)*n;
cx=50-m*h:0.1*h:50+m*h;
cy=l*(100-m);
hold on
plot(ax,ay,'g',bx,by,'g',cx,cy,'g',xa1,ya1,'B',xb1,yb1,'B',xt1,yt1,'o',xll,ya1,'M',
a1,b1,'r',a2,b2,'r',a3,b3,'r',a4,b4,'r',
a5,b5,'r',a6,b6,'r',a7,b7,'r')

end
for i=0:5:100
axi=i:0.1*h:50+h*i;
ayi=(-i+axi)*n;
bxi=i*h:0.1*h:i;
byi=(i-bxi)*n;
cxi=50-i*h:0.1*h:50+i*h;
cyi=l*(100-i);
plot(axi,ayi,'k',bxi,byi,'k',cxi,cyi,'k')
end