資源描述:
《陳兆杰實(shí)驗(yàn)八和實(shí)驗(yàn)九》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。
1、實(shí)驗(yàn)八數(shù)據(jù)處理與多項(xiàng)式計(jì)算1.A=rand(1,30000);B=mean(A);C=std(A);D=max(A);E=min(A);k=find(A>0.5);F=length(k)/length(A);BCDEF運(yùn)行結(jié)果:B=0.5006C=0.2888D=0.9999E=5.2801e-006F=0.50122.(1)P=rand(100,5);[a,b]=max(P)[c,d]=min(P)運(yùn)行結(jié)果:a=94.665794.270894.921494.667494.3621b=739371354c=45.315645.456145.491745.156746.1
2、281d=3815282131(2).實(shí)驗(yàn)內(nèi)容mean(P)運(yùn)行結(jié)果:ans=67.617967.081469.676268.502269.1406>>std(P,0,1)ans=14.548113.638213.404313.909414.6458(3)實(shí)驗(yàn)內(nèi)容q=sum(P,2);[h,i]=max(q)[j,k]=min(q)運(yùn)行結(jié)果:h=431.0539i=4j=263.8768k=43(4)實(shí)驗(yàn)內(nèi)容[zcj,xsxh]=sort(q,1,'descend')運(yùn)行結(jié)果:zcj=431.0539422.4358412.5276406.2152406.2138405.
3、7213403.1460399.2641398.1567397.5951396.4313395.2754395.2707393.9752390.5471387.7412385.1553383.4005380.7261377.1703377.1667376.9034376.4872376.4232376.3877375.7044375.4220374.5899374.4189373.6197372.2004370.3176370.2175369.5974366.4410366.1856365.7087365.6344364.5649362.8198362.3022359.9
4、357359.4536359.4265358.4811356.8541356.1746355.8291354.7454352.8705350.6218348.6756348.1554346.4169344.1814344.0732342.3167341.3151340.0799339.8625339.6953336.2557335.9881335.3741335.1173334.5799333.9820333.9038333.8900333.8330333.2322332.9611332.3021331.9274330.6651329.8048329.3764329.27
5、59325.0380323.0856321.3055320.8182315.0577314.3243311.9027311.8808311.5786309.4038307.4508307.2515306.0527302.5308300.4721298.3057297.8670291.8732291.3642291.2584280.4019263.8768xsxh=4520291659357221778987389829937843038181005456649642974813457179828278847671946586363692231295326210745714
6、76724933699440663977419315556852833817553809091504434857051243191160262586871212616543實(shí)驗(yàn)九數(shù)值微積分與方程數(shù)值求解2(1)y=inline('sqrt(cos(t.^2)+4*sin((2*t).^2)+1)');I1=quad(y,0,2*pi)運(yùn)行結(jié)果I1=6.7992+3.1526i(2)x=0:0.01:1;I2=(log(1+x)./(1+x.^2));trapz(x,I2)運(yùn)行結(jié)果:ans=0.27223A=[6,5,-2,5;9,-1,4,-1;3,4,2,-2;3,-9
7、,0,2];b=[-4,13,1,11]';x=Ab運(yùn)行結(jié)果:x=0.6667-1.00001.5000-0.0000