资源描述:
《matlab及其工程应用_b卷)-10级》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、试题编号:重庆邮电大学2010/2011学年2学期MATLAB及其工程应用(普通班)试卷(期末)(B)(闭卷)题号一二三四五六七八总分得分评卷人一、Fillintheblanks.(1scoreseach.Total30scores.)1.1UseMATLABoperator':'togeneratethevectorof[0,,,…]___1.2Anisacollectionofdatavaluesorganizedintorowsandcolumns,andknownbyasinglename.1.3WritetheresultsofthefollowingMATLABstatemen
2、ts,ifthereisanerror,pleasefill“error”.1)a=[123;456],a(5)=_;a(8)=_;a(-2)=_2)x=1:0.02:10;x=3)u=[1:3]';[uu]=___4)zeros(3,2)=___;ones(3)=___;a=[111417;121518;131619];I=eye(3);a*I=___5)z=[-20914];z(2)=5;z=___ 6)u=[22-31570];u(1)=u(4);u=___ 7)v=[1213-39-11];v(6)=7,v=___ 8)w=[147;258;369];w(2:end,2:end)=
3、0;w=___ 9)c=[123;456;789];c(1,[13])=-3;c=___ 10)date=[num2str(1)'-July-'num2str(2011)];ans=___MATLAB及其工程应用试卷第13页(共9页)11)fprintf('Areaofacirclewithradius%dis%7.4f',2,pi*2^2);ans=___12)a=[12;34];b=[56;78];a+b=__;a*b=__;a.*b=__;2a=__1.4Assumethatarray'array1'isdefinedasshown,anddeterminethecontentsof
4、thefollowingsub-arrays.array11=[4321;4678;9101112]1)array11(3,:)=___________2)array11(1:3,[2233])=__3)array11([23],[43])=__1.5Assumethata,b,c,anddareasdefined,andevaluarethefollowingexpressions:a=[0,5;3,-2];b=[-1,2;0,3];c=2;d=[3,-5,7;1,0,2]1)~(a>b)ans=_____2)a>c&b>cans=________3)a<=cans=_____1.6As
5、sumethata,b,c,anddareasdefined,andevaluarethefollowingexpressions:a=1;b=4;c=5;d=3MATLAB及其工程应用试卷第13页(共9页)1)a*b^2>a*cans=_______2)d
6、b>aans=____3)(d
7、b)>aans=_____二、Chosethebestanswerforthefollowingquestions.2scoreseach.Total20scores.)2.1AmongthefollowingMATLABvariablenames,theillegaloneisA.FaintB.don
8、't_bother_meC.Help_meD.godSaveMe2.2A=[123;965;347],thenA(1,:)is_____A.[123]B.[1]C.[1;7]D.[123;965;347]2.3AmongthefollowingcommentsaboutMATLAB,thecorrectoneis_____________A.MATLABcannotplot3-DpicturesB.MATLAB'svariablesneedtobedefinedbeforetheyareusedC.AMATLABfunctioncanreturnmorethan1variableD.AMA
9、TLABarraycannothave'string'inside2.4Aboutthesimultaneousequations(线性方程组)'Ax=b',MATLAB及其工程应用试卷第13页(共9页)thefollowingMATLABstatementwhichcansolvethevalueof‘x'is_____________A.x=A/bB.x=A./bC.x=AbD.x=A.b2.5Assumex=1