横向最大相间为8.534米,然后等间距地测得纵向高度,共有11个值,所以应该是吧8.534米分成12分,对应的值为纵向高度;
以左边零点位坐标原点,建立坐标系。线性插值得到图形,再用数值积分可求面积
x=linspace(0,8.534,13)
y=[0 0.914 5.060 7.772 8.717 9.083 9.144 9.083 8.992 8.687 7.376 2.073 0];
x0=0:0.001:8.534;
y1=interp1(x,y,x0);
figure,plot(x,y,'k*',x0,y1,'-r')
S=trapz(y1)*0.001
S =
54.6894
分数太少,题太麻烦。
x=linspace(0,8.534,13)
y=[0 0.914 5.060 7.772 8.717 9.083 9.144 9.083 8.992 8.687 7.376 2.073 0];
x0=0:0.001:8.534;
y1=interp1(x,y,x0);
figure,plot(x,y,'k*',x0,y1,'-r')
S=trapz(y1)*0.001
S =
54.6894