欢迎来到天天文库
浏览记录
ID:38496863
大小:16.06 KB
页数:4页
时间:2019-06-13
《matlab函数英文说明》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、sin-SineofargumentinradiansThisMATLABfunctionreturnsthesineoftheelementsofX.rand-UniformlydistributedpseudorandomnumbersThisMATLABfunctionreturnsapseudorandomscalardrawnfromthestandarduniformdistributionontheopeninterval(0,1).global-DeclarevariablesasglobalThisMATLABfunctiondeclaresvar
2、iablesvar1...sqrt-SquarerootThisMATLABfunctionreturnsthesquarerootofeachelementofthearrayX.title-AddtitletocurrentaxesThisMATLABfunctionaddsthetitleconsistingofastring,str,atthetopandinthecenterofthecurrentaxes.meshgrid-Rectangulargridin2-Dand3-DspaceThisMATLABfunctionreplicatesthegrid
3、vectorsxgvandygvtoproduceafullgrid.inv-MatrixinverseThisMATLABfunctionreturnstheinverseofthesquarematrixX.inf-InfinityThisMATLABfunctionreturnstheIEEEarithmeticrepresentationforpositiveinfinity.fix-RoundtowardzeroThisMATLABfunctionroundstheelementsofAtowardzero,resultinginanarrayofinte
4、gers.ones-CreatearrayofallonesThisMATLABfunctionreturnsthescalar1.linspace-GeneratelinearlyspacedvectorThisMATLABfunctionreturnsarowvectorwith100linearlyspacedpointsintheinterval[x1,x2].sort-SortarrayelementsThisMATLABfunctionsortstheelementsofAinascendingorderalongthefirstarraydimensi
5、onwhosesizedoesnotequal1.grid-Gridlinesfor2-Dand3-DplotsThisMATLABfunctionaddsmajorgridlinestothecurrentaxes.plot-2-DlineplotThisMATLABfunctioncreatesa2-DlineplotofthedatainYversusthecorrespondingvaluesinX.IfXandYarebothvectors,thentheymusthaveequallength.surf-3-DshadedsurfaceplotThisM
6、ATLABfunctioncreatesathree-dimensionalshadedsurfacefromthezcomponentsinmatrixZ,usingx=1:nandy=1:m,where[m,n]=size(Z).ylabel-Labely-axisThisMATLABfunctionlabelsthey-axisofthecurrentaxeswiththestring,str.xlabel-Labelx-axisThisMATLABfunctionlabelsthex-axisofthecurrentaxeswiththetextspecif
7、iedbystr.function-Declarefunctionname,inputs,andoutputsThisMATLABfunctiondeclaresafunctionnamedmyfunthatacceptsinputsx1,...,xMandreturnsoutputsy1,...,yN.disp-DisplaytextorarrayThisMATLABfunctiondisplaysthecontentsofXwithoutprintingthevariablename.num2str-ConvertnumbertostringThisMATL
此文档下载收益归作者所有