雨課堂學(xué)堂在線學(xué)堂云《Scientific Computing and the MATLAB Language( 中南)》單元測(cè)試考核答案_第1頁
雨課堂學(xué)堂在線學(xué)堂云《Scientific Computing and the MATLAB Language( 中南)》單元測(cè)試考核答案_第2頁
雨課堂學(xué)堂在線學(xué)堂云《Scientific Computing and the MATLAB Language( 中南)》單元測(cè)試考核答案_第3頁
雨課堂學(xué)堂在線學(xué)堂云《Scientific Computing and the MATLAB Language( 中南)》單元測(cè)試考核答案_第4頁
雨課堂學(xué)堂在線學(xué)堂云《Scientific Computing and the MATLAB Language( 中南)》單元測(cè)試考核答案_第5頁
已閱讀5頁,還剩61頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

注:不含主觀題第1題單選題(1分)ThewordMATLABcomesfromtheabbreviationsof().AMathematicaLaboratoryBMatrixLaboratoryCMathWorksLabDMatricesLab第2題單選題(1分)Amongthefollowingoptions,onethatreflectsthecharacteristicsofMATLABis().AoptimalalgorithmBThereisnoneedtowriteprogramsCHighefficiencyinprogramexecutionDHighprogrammingefficiency第3題判斷題(1分)Scientificcomputingisthethirdscientificresearchmethodafterscientificexperimentandtheoreticalresearch.第4題判斷題(1分)ThereisnoneedforanynumericalcomputingmethodwhenusingMATLABtosolveproblemsinscientificcomputing.ClassQuiz第1題單選題(1分)Whentypingacommandinthecommandwindow,youcanfollowthefirstphysicallinewithacontinuationcharacterandpressEnter,thencontinuetypingtherestofthecommandonthenextphysicalline.Thewaytowriteacontinuationcharacteris().Aellipsis(...)Bsemicolon(;)Cthreedecimalpoints(...)Dpercentsign(%)第2題單選題(1分)IntheMATLABcommandwindow,thesymbolthatpromptstheusertoenterthecommandis().A>B>>C>>>D>>>>第3題單選題(1分)Therearefpp.mfilesinboththecurrentfolderandthesearchpath,sowhenyoutypefppinthecommandwindow,thefilethatwillbeexecutedis().AThefpp.mfileinthesearchpathwillbeexecutedatfirst,thenthefpp.mfileinthecurrentfolderbeexecutedBThefpp.mfileinthesearchpathCThefpp.mfileinthecurrentfolderwillbeexecutedatfirst,thenthefpp.mfileinthesearchpathbeexecutedDThefpp.mfileinthecurrentfolderClassQuiz第1題單選題(1分)Inthecommandwindowinputthecommand:>>

x

=

int8

(130)thevalueofxis().A127B129C128D-127第2題單選題(1分)fix(264/100)+mod(264,10)*10equals().A86B62C423D42第3題判斷題(1分)Thevalueofsin(pi/2)isequaltothatofsind(90).ClassQuiz第1題單選題(1分)ThefollowingidentifierthatcanbeusedasavalidvariablenameinMATLABis().A12myB_123C

@hDxyz_2a第2題單選題(1分)Inputthefollowingcommandinthecommandwindow:>>

clear>>

x=i*jThevalueofxis().AuncertainB

-1C1D

i*j第3題判斷題(1分)Thememoryvariablefileisabinaryformatfilewithanextensionof".mat".ClassQuiz第1題單選題(1分)Whencreatingamatrix,theelementsofthedifferentrowsareseparatedby().AcommaBspaceCsemicolonDquotationmark第2題單選題(1分)Usingthestatementt=0:9,wegenerateavectorof()elemets.A8B9C6D10第3題單選題(1分)Usingthestatementx=linspace(0,pi,6),wegenerateavectorof()elements.A8B7C6D5ClassQuiz第1題單選題(1分)AfterexecutingstatementA=[1,2,3;4,5,6],thevalueofA(3)is().A1B2C3D4第2題單選題(1分)Giventhataisa3×3matrix,a(:,end)refersto().AalltheelementsBtheelementsofthefirstrowCtheelementsofthethirdrowDtheelementsofthethirdcolumn第3題單選題(1分)Ifaisknowntobea3×5matrix,thenafterexecutinga(:,[2,4])=[],().AatransformstoarowvectorBatransformsto3rowsand2columnsCatransformsto3rows3columnsDatransformsto2rows3columns第4題單選題(1分)Ifaisknowntobea2×3matrix,thenafterexecutinga=a(:),().AatransformstoacolumnvectorBatransformsto3rowsand2columnsCatransformsto3rowsand3columnsDatransformsto2rows3andcolumns第5題單選題(1分)Theresultofexecutingthefunctionreshape(1:6,2,3)is().AarowvectorofsixelementsB

acolumnvectorofthesixelementsCa2×3matrixDa3×2matrixClassQuiz第1題判斷題(1分)InMATLAB,therightdivisionoperator(/)andtheleftdivisionoperator(\)areequivalent.第2題判斷題(1分)IfAisnonsingularsquarematrix,thenB/Aisequivalenttoinv(A)*B.第3題判斷題(1分)Whenyoutaketheoperationofdotproductbetweentwomatrices,youwantthemtobeidentical.第4題判斷題(1分)Expression~(9==1)isequaltothevalueofexpression~9==1.ClassQuiz第1題單選題(1分)Whenenteringastring,enclosethesequenceofcharacterswith().A

[]B{}C

''D

""第2題單選題(1分)Itisknownthatch=['abcdef';'123456'],thenthecharacterrepresentedbych(2,4)is().A4B3CcDd第3題單選題(1分)Theresultoftheexpression'www0'>='W123'is().A1100B1110C1000D0001第4題單選題(1分)Thevalueofeval('sqrt(4)+2')is().A

sqrt(4)+2B4C2D2,2UnitTest1第1題單選題(1分)Whenexecutingacommandincommandwindow,ifyoudonotwanttooutputtheresultimmediatelyinthecommandwindow,youcanadd().Acolon(:)Bcomma(,)Csemicolon(;)Dpercent(%)第2題單選題(1分)Thevalueoftheexpressionfix(exp(1))+mod(264,10)*10is().A86B62C423D42第3題單選題(1分)Afterthefollowingcommandisexecuted,thevalueofxis().>>

clear>>

5i;>>

ans*jA5iB-5C5D5i*j第4題單選題(1分)Thestatementx=linspace(1,10,6)willgenerateavectorof(

)elements.A1B5C6D10第5題單選題(1分)?Theresultoffunctionfloor(-2.1)is().A-3B-2C1D2第6題單選題(1分)?Theformatoptionthatwouldresultinthefollowingoutputformatis().>>

2/5

+

3/11ans

=

37/55AlongBshortChexDrat第7題單選題(1分)?IfitisknownthatAisa3×5matrix,afterexecutingA(:,1:2:3)=[],().AAbecomesrowvectorBAbecomes3rowsand3columnsCAbecomes3rowsand2columnsDAbecomes2rowsand3columns第8題多選題(2分)Inputthefollowingcommandincommandwindow:>>

A=[1:3;4:6];>>

D=sub2ind(size(),[1,1],[2,3])ThevalueofDis(

)。A3

6B2

5C4

5D3

5正確答案:AD第9題多選題(2分)?Ifthefpp.mfileexistsinboththecurrentfolderandsearchpath,thewrongoptionsinthefollowingstatementare()whenenteringfppinthecommandwindow.Aexecutethefpp.mfileinthesearchpathatfirst,thenexecutethefpp.mfileinthecurrentfolderBonlyexecutethefpp.mfileinsearchpathCexecutesthefpp.mfileofthecurrentfolderatfirst,thenexecutethefpp.mfileinthesearchpathDonlyexecutefpp.mfileincurrentfolder正確答案:ABC第10題多選題(2分)?TheMATLABexpressionforthefollowingmathematicalexpressionare().(Hereπandeareallmathematicalconstants.)Api-exp(pi)Bpi-power(exp(1),pi)Cpi-e^piDpi-exp(1)^pi正確答案:ABD第11題判斷題(1分)?Whenx=0.1,0.3,0.5,0.7,0.9,usethefollowingexpressiontofindthevalueofy=sinxcosxrespectively.>>

x=0.1:0.2:0.9;>>

y=sin()*cos();()第12題判斷題(1分)?Theformatcommandnotonlyaffectsthedataoutputformat,butalsoaffectsthecalculationandstorageofdata.()第13題判斷題(1分)?InamatrixAwith3rowsand3columns,A(4)representstheelementinthesecondrowandthefirstcolumnofmatrixA.()第14題判斷題(1分)Thevalueofexpression~(5|3)isnotequaltothevalueofexpression~5|3.()ClassQuiz第1題單選題(1分)ThecommandwhichcancreatethethirdorderidentitymatrixAis().AA=eye(3)BA=eye(3,1)CA=eye(1,3)DA=ones(3)第2題單選題(1分)ThecommandtocreateamatrixofonesofthesamesizeasAis().Aone(size(A))Bones(size(A))Cones(A)Dsize(ones(A))第3題單選題(1分)Thestatementthatcancreatea5×6randommatrixofwhichelementisarandomintegerintherangeof[100,200]is().AA=fix(100+200*rand(5,6))BA=fix(200+100*rand(5,6))CA=fix(100+300*rand(5,6))DA=fix(100+101*rand(5,6))第4題單選題(1分)Thestatementthatcancreate500normallydistributedrandomnumberswithameanvalueof1andavarianceof0.2is()。AX=0.2+randn(500)BX=1+0.2*randn(500)CX=1+sqrt(0.2)*randn(25,20)DX=0.2+randn(25,20)第5題判斷題(1分)Hilbertmatrixisanill-conditionedmatrix.Itsillconditioneddegreeisrelatedtotheorderofthematrix.Withthedecreaseoforder,theillconditioneddegreeismoreserious.ClassQuiz第1題單選題(1分)ThecommandwhichcanusetheelementsoftheseconddiagonalbelowthemaindiagonalofmatrixAtocreateadiagonalmatrixBis()。AB=diag(A,-2)BB=diag(diag(A,-2))CB=diag(triu(A,-2))DB=diag(tril(A,-2))第2題單選題(1分)Inthefollowingpairsofcommands,thepairwithdifferentresultsis().Ax=(-2:2)'andx=[-2:2]’Bx=diag(diag(ones(3)))andx=eye(3)Cx=rot90(A)andx=fliplr(A)Dx=triu(A,1)+tril(A,-1)andx=A-diag(diag(A))第3題單選題(1分)Thecommandtoadd30tothediagonalelementsofmatrixAis().AA+30*eye(size(A))BA+30*eye(A)CA+30*ones(size(A))DA+30*eye(4)第4題單選題(1分)SetAasa6-ordersquarematrix,andgenerate2×3matrixBfromtheelementsofitssub-diagonal(itisrequiredthatthecolumnnumberofthesub-diagonalelementisnotchanged).Thecorrespondingcommandis().AB=reshape(diag(fliplr(A)),3,2)BB=reshape(diag(fliplr(A)),2,3)CB=reshape(diag(flipud(A)),3,2)DB=reshape(diag(flipud(A)),2,3)第5題判斷題(1分)Thefunctionrot90(X,4)isthesameasX.ClassQuiz第1題單選題(1分)Thevaluereturnedbythefunctiontrace(diag(1:5))is().A5B15C0D120第2題單選題(1分)Thevaluereturnedbythefunctiondet(diag(1:5))is().A5B15C0D120第3題判斷題(1分)Thenormmustbenon-negative.第4題判斷題(1分)Therankofevenordermagicsquareis3.第5題判斷題(1分)Theconditionalnumberisalwaysgreaterthan1andcloseto1.ClassQuiz第1題單選題(1分)Afterexcutingthestatement"[X,D]=eig(A)",Dis().AascalarmatrixBanidentitymatrixCatriangularmatrixDadiagonalmatrix第2題單選題(1分)ThefunctioninMATLABwhichcandemonstratetherelationshipbetweenvectorxandAxis(

).AeigshowBshoweigCeigdispDdispeig第3題多選題(2分)ItisknownthatAisasquarematrix.Afterexecutingthestatement[X,D]=eig(A),theoretically,thecorrectoptionsare().AA?XequalsX?DBA?X(:,1)equalsD(1,1)?X(:,1)CA?X(:,end)equalsD(end,end)?X(:,end)DA?X(1:end,1)equalsD(1)?X(:,1)正確答案:ABCD第4題判斷題(1分)Takingtheunitvectorxcontinuously,Axcanstretchthecircleintoanellipse.ClassQuiz第1題單選題(1分)Themainpurposeofusingsparsestorageisto().AchangestorageorderBimproveoperationprecisionCsavememoryspaceDdesignefficientalgorithm第2題單選題(1分)AfterexecutingthestatementA=sparse([0,1,1;0,0,1]),thelastlineoftheoutputresultis().A(1,2)

1B(1,3)

1C(1,3)

0D(2,3)

1第3題判斷題(1分)Thematrixwhichadoptssparsestoragemethodmustbeasparsematrix.第4題判斷題(1分)Thefunctionfull(speye(5))hasthesamefunctionasthefunctioneye(5).UnitTest2第1題單選題(1分)Thestatementwhichcancreatethethirdordermagicmatrixis().AM=magic(3)BM=MAGIC(3)CM=Magic(3)DM=magic(1,3)第2題單選題(1分)?Thestatementwhichcancreatethe5thordermatrixAcomposedofdouble-digitrandomintegersis().AA=fix(10+89*rand(5))BA=fix(20+90*rand(5,5))CA=fix(10+90*rand(5))DA=fix(10+100*rand(5))第3題單選題(1分)?ThestatementwhichcancreatethediagonalmatrixPwith(x+y)^5expansioncoefficientis().AP=diag(flipud(pascal(6)))BP=diag(diag(flipud(pascal(6))))CP=diag(flipud(pascal(5)))DP=diag(diag(flipud(pascal(5))))第4題單選題(1分)?TheexpressionwhichcanmakethediagonalelementsofmatrixAplus30is().AA+30*eye(size(A))BA+30*eye(A)CA+30*ones(size(A))DA+30*eye(4)第5題多選題(2分)?Afterthestatement[X,D]=eig()isexecuted,Disa().AtriangularmatrixBdiagonalmatrixCscalarmatrixDidentitymatrix正確答案:AB第6題單選題(1分)?Themainpurposeofusingsparsestorageis().AchangestorageorderBimproveoperationprecisionCsavememoryspaceDdesignefficientalgorithm第7題單選題(1分)AfterexecutingstatementA=sparse([0,2,5;2,0,1]),thelastlineoftheoutputresultis().A(2,1)

2B(1,2)

2C(1,3)

5D(2,3)

1第8題多選題(2分)ThestatementwhichcancreatethethirdordermatrixofonesAare().AA=[ones(3,1),ones(3,1),ones(3,1)]BA=ones(3)CA=diag(eye(3))*ones(1,3)DA=ones(3,3)正確答案:ABCD第9題多選題(2分)Amongthefollowingchoices,ofwhichtwocommandresultsaresametoeachother?(

).Ax=(-2:2)'andx=[-2:2]'Bx=diag(diag(ones(3)))andx=eye(3)Cx=triu(A,1)+tril(A,-1)andx=A-diag(diag(A))Dx=rot90(A)andx=fliplr(A)正確答案:ABC第10題多選題(2分)?Matrixtraceisequaltothesumofthediagonalelementsofthematrix.Thecommandwhichcanfigureoutmatrixtraceare().Atrace(A)Bsum(diag(A))Cprod(eig(A))Dsum(eig(A))正確答案:ABD第11題多選題(2分)?GivenAmatrixandCmatrix,thecommandsthatcanbeusedtochangefromAtoCare().??AC=reshape(A,4,3)BC=A’CC=rot90(A,3)DC=rot90(A,-1)正確答案:CD第12題判斷題(1分)Sparsematrixmustadoptsparsestoragemethod.()第13題判斷題(1分)Thefunctionspeye(5)hasthesamefunctionasthefunctionsparse(eye(5)).()ClassQuiz第1題判斷題(1分)Anycomplicatedprogramconsistsofthreebasicstructures:sequencestructure,selectionstructureandloopstructure.第2題判斷題(1分)InMATLAB,theextensionofscriptfilesis.m,sothescriptfilesarealsocalledMfiles.第3題判斷題(1分)IntheCommandWindow,youcaneitherdirectlyrunthefunctionfileorcallitinthewayoffunctioncall.ClassQuiz第1題單選題(1分)Theoptionwiththeconditiontrueis(

).A[1,2;0,4]B[]C[1,2;3,4]D0第2題單選題(1分)Theoutputofthefollowingprogramis(

).y=30;if

y==30

y=y*2;elseif

y>0

y=10enddisp(y)A1B30C10D60第3題判斷題(1分)Nomatterhowmanybranchesthereareinaifstatementwithmulti-branches,aftertheprogramexecutesonebranch,theremainingbrancheswillnotbeexecutedagain,andthentheentireifstatementends.ClassQuiz第1題單選題(1分)Intheswitchstatement,caseresultlististhevalueofswitchexpression.Whentherearemultiplevalues,use()torepresent.AstructureddataBnumericaldataCenumerateddataDcelldata第2題單選題(1分)Theoutputofthefollowingprogramis().a=1;switch

a

case

3|4

disp('perfect')

case

{1,2}

disp('ok')

otherwise

disp('no')endAokBperfectCnoD2第3題判斷題(1分)Inmanycases,switchstatementandifstatementwithmultiplebranchescanbeusedinterchangeably.ClassQuiz第1題單選題(1分)Thefollowingstatementloops()times.for

k=2:-2:13

kendA0B6C13D1第2題單選題(1分)Supposethestatement:a=eye(6);for

n=a(3:end,:)

nendThenumberoftimesoftheforloopis().A3B4C5D6第3題單選題(1分)Afterexitingtheloop,thevalueofkis().for

k=1:3:11endkA3B11C10D7第4題單選題(1分)Supposetheprogram:x=reshape(1:12,3,4);m=0;n=0;for

k=1:4if

x(:,k)<=6

m=m+1;elsen=n+1;endendAftertheprogramisexecuted,thevaluesofmandnrespectivelyare(

).A6,6B2,1C2,2D1,2ClassQuiz第1題單選題(1分)Supposetheprogram:k=10;while

k

k=k-1endandthecorrectoneinthefollowingdescriptionis(

).AExecutethewhileloop10timesBTheloopisaninfiniteloopCThestatementsofloopwillnotbeexecutedDThestatementsofloopwillbeexecutedonce.第2題單選題(1分)Theoutputofthefollowingprogramis().s=0;for

i=1:10

if

rem(i,2)==0

continue

end

if

rem(i,7)==0

break

end

s=s+i;enddisp(s)A3B9C10D7第3題判斷題(1分)Thebreakstatementisusedtoclosethecurrentloop,andthestatementcontinueisusedtoclosethewholeloop.ClassQuiz第1題單選題(1分)Executethefollowingcommands.Thewrongdescriptionsis().>>clear>>fcos=@cos;>>a=fcos(pi);AThevalueofais-1.BThevalueofaisequaltothevalueofcosd(180).CThevalueofaisequaltothevalueofcos(pi).DThevalueofaisuncertain.第2題單選題(1分)Afterthefollowingstatementsareexecuted,thevalueofvariableAis().>>f=@(x,y)2*(x+y);>>A=f(2,3);A2,3B3C10D5第3題判斷題(1分)Ifthenameoffunctionfileisdifferentfromthefunctionname,MATLABwillignorethenameofthefunctionfileandusethefunctionnamewhencallingthefunction.ClassQuiz第1題單選題(1分)Afterexecutingthefollowingscriptfile,theoutputis().Functionfilefib.m:function

f=fib(n)if

n>2

f=fib(n-1)+fib(n-2);else

f=1;endScriptfile:F=[];for

k=1:6

F=[F,fib(k)];enddisp(F(k))A2B3C5D8第2題判斷題(1分)Therearetwokindsofmethodstocallrecursioninafunction,oneisdirectrecursion,theotherisindirectrecursion.第3題判斷題(1分)Callingrecursionalsocanreducethestoragespaceandexecutiontimeandimprovetheexecutionefficiencyoftheprogram.ClassQuiz第1題單選題(1分)Defineafunctionfiletest.m:function

fout=test(a,b,c)if

nargin==1

fout=2*a;elseif

nargin==2

fout=2*(a+b);elseif

nargin==3

fout=2*(a.*b.*c);endTheresultofcallingthetestfunctionintheCommandWindowis().>>test(1:3,[-1,0,3])A24

6B03

3C-2

612D0412第2題判斷題(1分)Thevariablesdefinedinafunctionfileareglobalvariables.第3題判斷題(1分)MATLABhastwopredefinedvariablesnarginandnargout.Whencallingafunction,thosevariablescanrecordthisfunction’snumberofinputargumentsandoutputarguments.UnitTest3第1題單選題(1分)Intheswitchstatement,thecaseresultlististhevalueoftheswitchexpression.Whentherearemultiplevalues,itisindicatedby().AstructureddataBnumericaldataCenumerateddataDcelldata第2題單選題(1分)Theoutputofthefollowingprogramis().a=1;switch

a

case

3|4disp('perfect')

case

{1,2}disp('ok')

otherwisedisp('no')endAokBperfectCnoD2第3題單選題(1分)?Lookatthefollowingtwoforloops.Thecorrectoptionis().Loop1:for

k=[12,3,1,0]…endLoop2:for

k=[12;3;1;0]…endALoop1loops4times,Loop2loops1time.BLoop1loops1time,Loop2loops4times.CLoop1andloop2bothloop4times.DLoop1andloop2bothloop1time.第4題單選題(1分)Supposetheprogram:k=10;while

k

k=k-1;endkAftertheprogramisexecuted,kis().A10B1C0D-1第5題單選題(1分)Defineafunctionfilefun.m:function

f=fun()f=sum(n.*(n+1));TheresultofcallingthefunfunctionintheCommandWindowis().>>

fun(1:5)A30B50C65D70第6題單選題(1分)?Defineafunctionfilefsum.m:function

s=fsum()if

n<=1

s=1;else

s=fsum(n-1)+n;

endTheresultofcallingthefsumfunctionintheCommandWindowis().>>

fsum(10)?A45B55C65D75第7題單選題(1分)Defineafunctionfiletest.m:function

fout=test(a,b,c)if

nargin==1

fout=2*a;elseif

nargin==2

fout=2*(a+b);elseif

nargin==3

fout=2*(a.*b.*c);endTheresultofcallingthetestfunctionintheCommandWindowis().>>

test(1:3,[-1,0,3])A2

4

6B0

3

3C-2

612D0

412第8題多選題(2分)?Tofigureoutthevalueofthepiecewisefunction,thecorrectprogramsare().???A.x=input('x=:');y=(x+10)*(x>0)+(x-10)*(x<=0);disp()Ax=input('x=:');y=x+10;if

x<=0

y=x-10;enddisp(y)Bx=input('x=:');if

x>0

y=x+10;else

y=x-10;enddisp(y)Cx=input('x=:');if

x>0

y=x+10;elseif

x<=0

y=x-10;enddisp(y)正確答案:ABC第9題多選題(2分)?Afterexecutingthefollowingstatement,thecorrectdescriptionsare().>>clear>>fcos=@cos;>>a=fcos();AThevalueofaisuncertain.BThevalueofais-1.CThevalueofaisequaltothevalueofcosd(180).DThevalueofaisequaltothevalueofcos(pi).正確答案:BCD第10題多選題(2分)?Findthevalueofy.Thecorrectscriptsare().????Ay=2.^(0:20);sum(y)By=2^[0:20];sum(y)Cy=1;for

k=1:20y=y+2^k;endyDy=[1];for

k=1:20y=[y,

2^k];endsum(y)正確答案:ACD第11題多選題(2分)?Defineafunctionthatreturnstheperimeterandareaofacircleaccordingtoitsradius.Thecorrectoptionsare().??Afunction[p,s]=fcircle(r)p=2*pi*r;s=pi*r*r;Bfunctionout=fcircle(r)out=[2*pi*r;pi*r*r];Cfcircle=@(r)[2*pi*r;pi*r*r];D[p,s]=@(r)[2*pi*r;pi*r*r];正確答案:ABC第12題判斷題(1分)?Inmanycases,theforstatementandthewhilestatementcanreplaceeachother.()第13題判斷題(1分)?Thefunctionitselfiscalledinthedefinitionofafunction.Thisistherecursivecallofthefunction.()ClassQuiz第1題單選題(1分)Ifxandyareboth4×3matrices,thenumberofcurvesdrawninthefigurewindowis()afterexecutingtheplot(x,y)command.A12B7C4D3第2題單選題(1分)Whensettingthecolorofcurve,thecolorthatcharacterbrepresentsis(

).AredBgreenCblueDblack第3題單選題(1分)LetAbea100×2numericalmatrix.IfyouwanttodrawacurvewiththefirstcolumndataofAasabscissaandthesecondcolumndataofAasordinate,thecommandis(

).Aplot(A(:,1),A(:,2))Bplot(A)Cplot(A(1,:),A(2,:))Dplot(A(1),A(2))第4題判斷題(1分)Ifxisanm×nmatrix,thecommandofplot(x)drawsalineforeachrowofthematrixandthetotalnumberoflinesism.ClassQuiz第1題單選題(1分)Thecommandtodisplaythegridinthefigurewindowis().AholdonBboxonCgridonDfigure第2題單選題(1分)Afigurewindowisdividedinto2×3subplots,andthecommandis()tospecifytheuppermiddlesubplot.Asubplot(2,3,1)Bsubplot(2,3,2)Csubplot(2,3,3)Dsubplot(2,3,4)第3題單選題(1分)Afterexecutingthefollowingcommand,theresultis(

).x=0:pi/100:2*pi;for

n=1:2:10

plot(n*sin(x),n*cos(x))

hold

onendaxis

squareAFiveconcentriccirclesBFiveparallellinesCOnesineandonecosineDFivesinesandfivecosines第4題判斷題(1分)Thefunctiontextcanbeusedtolabeltheaxes.ClassQuiz第1題單選題(1分)Thefunctiontodrawabargraphis().ApolarBpieCbarDarea第2題單選題(1分)Thefunctiontodrawthepolargraphis().AplotBpolarCroseDfplot第3題單選題(1分)Tomakethecurveoffunctiony=e^xdrawstraightline,theplottingfunctionshouldbe().AplotBsemilogxCsemiologyDloglog第4題判斷題(1分)Therearethefollowingcommands:x=1:0.1:2;y=2.^(0.1+1.2*log(x));whencallingthecommandloglog(x,y),astraightlinewillbedrawn.ClassQuiz第1題單選題(1分)Afterexecutingthefollowingcommand,theresultinggraphis().x

=

0:pi/50:10*pi;y=cos(x);z=sin(x)plot3(z,y,x)grid

onaxis

squareABCD第2題多選題(2分)Therearethefollowingcommands:t

=

linspace(0,20*pi,

501);plot3(t.*sin(t),

t.*cos(t),

t);Afterexecutingtheabovecommand,thegraphicontheleftcanbedrawn.Thecommandyoucanusetodrawtherightgraphicis().Aplot3(t.*sin(t),t.*cos(t),t);hold

onplot3(t.*sin(t),

t.*cos(t),

-t);Bplot3(t.*sin(t),t.*cos(t),t,t.*sin(t),t.*cos(t),-t);Cplot3(t.*sin(t),t.*cos(t),[t;-t]);Dplot3(t.*sin(t),t.*cos(t),[t,-t]);正確答案:ABC第3題判斷題(1分)Afterrunningthefollowingprogramandthreestraightlinescanbedrawn.X=[1,2,3];Y=[1,2,3];Z=[1,2,3];plot3(X,Y,Z,'b')ClassQuiz第1題單選題(1分)Afterrunningthefollowingprogram,theresultis().[x,y]=meshgrid(1:5);surf(x,y,5*ones(size(x)));APlanez=x+yBPlaneparalleltoxyplaneCPlaneperpendiculartoxyplaneDPlanez=5x第2題單選題(1分)Thegraphdrawnbythemeshcfunctionis().ABCD第3題判斷題(1分)Thefunctionmeshtakesxasthex-coordinate,yasthey-coordinate,andusem×ncombinationsofxandytoconstructthegridpoints,calculatesthezvalueonthepoint(x,y),andthendrawspointsabovethepointswithzastheverticalcoordinate,connectsfouradjacentpointswithstraightlinestoformacurvedgrid,andfinallydrawsa3-Dgridgraphtoexpressthefunctionz=f(x,y).ClassQuiz第1題單選題(1分)Afterrunningthefollowingprogram,thegraphis().[x,y,z]=cylinder(10,40);surf(x,y,z)view(90,0);axis

squareAAsolidcircleBAhollowcircleCArectangularDAcylindrical第2題單選題(1分)Afterrunningthefollowingprogram,thegraphis().[x,y]=meshgrid(-2:2);z=x+y;i=find(abs(x)<1

&

abs(y)<1);z(i)=NaN;surf(x,y,z);shading

interpACutasmallsquareinthecenterofasquareBCutasmallrectangleinthecenterofasquareCCutasmallsquareatthetopofasquareDCutasmallsquareatthebottomofasquare第3題單選題(1分)Afterrunningthefollowingprogram,thegraphis().[x,y,z]=sphere;M=[0

0

1];z(find(z>0))=NaN;surf(x,y,z)colormap(M)axis

equalAHalfabluesphereBAbluecircularringCAbluecircleDAbluecylinderClassQuiz第1題單選題(1分)BeforeplottingwiththecommandbuttoninthePlotstab,youneedto().AentertheplottingcommandintheCommandWindowBselecttheplottingvariableintheworkspaceCopenthefigurewindowDcreateMfile第2題判斷題(1分)Afigurewindowcandisplayonlyonegraph.第3題判斷題(1分)Plottingisindependentoftheorderinwhichvariablesareselectedintheworkspace.第4題判斷題(1分)Youcannotadd2-Dplotsonthesameaxiswherea3-Dgraphisexisting.UnitTest4第1題單選題(1分)?Ifxandyareboth5×6matrices,thenumberofcurvesdrawninthefigurewindowis()afterexecutingtheplot(x,y)command.A5B6C11D30第2題單選題(1分)Theresultofthefollowingprogramis().x=[0,1,1,0,0];y=[0,0,1,1,0];for

n=1:3

plot(n*x,n*y)

hold

onendaxis

equalA3rectangleswithlower-leftcornerattheoriginB3rectangleswithcenteratoriginC3straightlinesD15points第3題單選題(1分)?Afterthecommandtext(1,1,'{\alpha}\leq{2\pi}')isexecuted,theannotationeffectis().

?A{\alpha}\leq{2\pi}Bα≥2πCα≤2πD{α}\leq{2π}第4題單選題(1分)?thecommandsubplot(2,2,3)isthesubplotof().Aalower-leftgraphoftworowsandtwocolumns

Balower-rightgraphoftworowsandtwocolumns

Caupper-leftgraphoftworowsandtwocolumnsDaupper-rightgraphoftworowsandtwocolumns第5題單選題(1分)Tomakethefunctiony=lnxplottedasastraightline,theplottingfunctionshouldbe().ApolarBsemilogxCsemilogyDloglog第6題單選題(1分)Theresultofthefollowingprogramis().[x,y]=meshgrid(1:5);surf(x,5*ones(size()),y);Az=yplaneBaplaneparalleltoxyplaneCaplaneperpendiculartoxyplaneDy=5xplane第7題單選題(1分)Whichofthefollowingfunctionscannotbeusedtodrawthescatterplots().AscatterBstairsCstemDpie第8題單選題(1分)Afterrunningthefollowingprogram,thegraphyouseeis().t=0:pi/6:2*pi;[x,y,z]=cylinder(t,6);surf(x,y,z)view(0,90);axisequalA6concentriccircleB6concentrichexagonC12concentriccircleD12concentrichexagons第9題單選題(1分)Afterrunningthefollowingprogram,wegetthegraph().[x,y]=meshgrid(-2:2);z=x+y;i=find(abs()<1&abs()<1);z()=NaN;surf(x,y,z);shadinginterpAscoopoutasmallsquareinthecenterofasquareBscoopoutasmallrectangleinthecenterofasquareCscoopoutasmallsquareatthetopofasquarDscoopoutasmallsquareatthebottomofasquare第10題單選題(1分)Beforeplottingwiththecommandbuttoninthe"PLOTS"tab,youneedto().AopenthefigurewindowBcreateMfileCinputtheplottingcommandintheCommandWindowDselecttheplottingvariableintheworkspace第11題多選題(2分)Todrawasinecurveintheintervalof0≤x≤2π,thecommandsavailableare().Ax=linspace(0,2*pi,100);plot(x,sin(x));Bfplot(@(x)sin(x),[0,2*pi]);Cx=linspace(0,2*pi,100)';plot(x,sin(x));Dx=linspace(0,2*pi,100)';X=[x,sin(x)];plot(X);正確答案:ABD第12題多選題(2分)Whenplottingthesineandcosinecurvesof[0,2π]simultaneouslyinafigurewindow,wecanusethecommand().Ax=(0:0.01:2*pi)';Y=[sin(x),cos(x)];plot(x,Y);Bx=0:0.01:2*pi;Y=[sin(x);cos(x)];plot(x,Y);Cfplot(@(x)sin(x),@(x)cos(x),[0,2*pi]);Dfplot(@(x)[sin(x),cos(x)],[0,2*pi]);正確答案:ABD第13題判斷題(1分)Afterexecutingthecommandcolormap(gray(6)),thegraphsdrawnwiththesurffunctionaredescribedinsixdifferentconcentrationsofgray.()第14題判斷題(1分)Whencallingthefplot3functiontocreateaspacecurve,weneedtofirstcalculatethecoordinatesofthepointsonthecurve.()ClassQuiz第1題單選題(1分)Ifxisarowvector,afterrunningthestatement[a,b]=min(x),thesequencenumberofthesmallestelementinthevectorisstoredin().AaBbCneitheranorbDbothaandb第2題單選題(1分)IfA=[1,2,3,4,5;3,4,5,6,7],thevalueoffunctionmin(max(A))is().A1B3C5D7第3題單選題(1分)Ifaisa3×3matrix,thefunctionofthefunctionmean(a)is().AtocalculatetheaverageofeachrowofaBtocalculatetheaverageofeachcolumnofaCtoincreasearowoftheaverageforaDtoincreaseacolumnoftheaveragefora第4題判斷題(1分)ForthematrixA,themaximumelementintherowcanbeachievedbythefunctionmax(A,2).第5題判斷題(1分)Ifxisavectoranda=std(x),thegreaterthevalueofais,thegreaterthedeviationfromitsaverageofelementsinthevectoris.

Class

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論