非常简单的一道matlab积分题>>x=[7.0,10.5,13.0,17.5,34.0,40.5,44.5,48.0,56.0,61.0,68.5,76.5,80.5,91.0,96.0,101.0,104.0,106.5,111.5,118.0,123.5,136.5,142.0,146.0,150.0,157.0,158.0];>>y1=[44,45,47,50,50,38,30,30,34,36,34,41,45,46,43,37,33,28,32
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 13:56:25
非常简单的一道matlab积分题>>x=[7.0,10.5,13.0,17.5,34.0,40.5,44.5,48.0,56.0,61.0,68.5,76.5,80.5,91.0,96.0,101.0,104.0,106.5,111.5,118.0,123.5,136.5,142.0,146.0,150.0,157.0,158.0];>>y1=[44,45,47,50,50,38,30,30,34,36,34,41,45,46,43,37,33,28,32
非常简单的一道matlab积分题>>x=[7.0,10.5,13.0,17.5,34.0,40.5,44.5,48.0,56.0,61.0,68.5,76.5,80.5,91.0,96.0,101.0,104.0,106.5,111.5,118.0,123.5,136.5,142.0,146.0,150.0,157.0,158.0];
>>y1=[44,45,47,50,50,38,30,30,34,36,34,41,45,46,43,37,33,28,32,65,55,54,52,50,66,66,68];
>>y2=[44,59,70,72,93,100,110,110,110,117,118,116,118,118,121,124,121,121,121,122,116,83,81,82,86,85,68];
>>u=7:0.1:158;
>> v11=interp1(x,y1,u);
>> v12=interp1(x,y2,u);
>> v21=spline(x,y1,u);
>> v22=spline(x,y2,u);
>> plot(u,v11);holdon;plot(u,v12);hold on;plot(u,v21);hold on;plot(u,v22);hold off;
>>s11=trapz(u,v11);
>>s12=trapz(u,v12);
>>s21=trapz(u,v21);
>>s22=trapz(u,v22);
>>s1=(s12-s11)/18*40;
>>s2=(s22-s21)/18*40;
但是最后算出的面积距离标准值差很远……求帮忙……解决会追加积分的!
非常简单的一道matlab积分题>>x=[7.0,10.5,13.0,17.5,34.0,40.5,44.5,48.0,56.0,61.0,68.5,76.5,80.5,91.0,96.0,101.0,104.0,106.5,111.5,118.0,123.5,136.5,142.0,146.0,150.0,157.0,158.0];>>y1=[44,45,47,50,50,38,30,30,34,36,34,41,45,46,43,37,33,28,32
最后两行不对.
*(40/18)^2