MathWorks-MATLABDocumentation[2012/10/1215:54:24]中国联系我们商店现在注册登录产品和服务解决方案教育支持用户中心活动公司TrialsProductUpdatesDocumentationCenterMATLABFunctionsByCategory|AlphabeticalListLanguageFundamentalsEnteringCommandsansMostrecentanswerclcClearCommandWindowdiarySaveCommandWindowtexttofileformatSetdisplayformatforoutputhomeSendcursorhomeiskeywordDeterminewhetherinputisMATLABkeywordmoreControlpagedoutputforCommandWindowcommandhistoryOpenCommandHistorywindow,orselectitifalreadyopencommandwindowOpenCommandWindow,orselectitifalreadyopensyntaxTwowaystocallMATLABfunctionsMatricesandArraysArrayCreationandConcatenationaccumarrayConstructarraywithaccumulationblkdiagConstructblockdiagonalmatrixfrominputargumentsdiagDiagonalmatricesanddiagonalsofmatrixeyeIdentitymatrixfalseLogical0(false)freqspaceFrequencyspacingforfrequencyresponselinspaceGeneratelinearlyspacedvectorslogspaceGeneratelogarithmicallyspacedvectorsmeshgridRectangulargridin2-Dand3-DspacendgridRectangulargridinN-DspaceonesCreatearrayofallonesrandUniformlydistributedpseudorandomnumberstrueLogical1(true)zerosCreatearrayofallzeroscatConcatenatearraysalongspecifieddimensionhorzcatConcatenatearrayshorizontallyvertcatConcatenatearraysverticallyIndexingcolonCreatevectors,arraysubscripting,andfor-loopiteratorsendTerminateblockofcode,orindicatelastarrayindexind2subSubscriptsfromlinearindexMATLABAcceleratingthepaceofengineeringandscienceMathWorks-MATLABDocumentation[2012/10/1215:54:24]sub2indConvertsubscriptstolinearindicesArrayDimensionslengthLengthofvectororlargestarraydimensionndimsNumberofarraydimensionsnumelNumberofelementsinarrayorsubscriptedarrayexpressionsizeArraydimensionsiscolumnDeterminewhetherinputiscolumnvectorisemptyDeterminewhetherarrayisemptyismatrixDeterminewhetherinputismatrixisrowDeterminewhetherinputisrowvectorisscalarDeterminewhetherinputisscalarisvectorDeterminewhetherinputisvectorSortingandReshapingArraysblkdiagConstructblockdiagonalmatrixfrominputargumentscircshiftShiftarraycircularlyctransposeComplexconjugatetransposediagDiagonalmatricesanddiagonalsofmatrixflipdimFliparrayalongspecifieddimensionfliplrFlipmatrixlefttorightflipudFlipmatrixuptodownipermuteInversepermutedimensionsofN-DarraypermuteRearrangedimensionsofN-DarrayrepmatReplicateandtilearrayreshapeReshapearrayrot90Rotatematrix90degreesshiftdimShiftdimensionsissortedDeterminewhethersetelementsareinsortedordersortSortarrayelementsinascendingordescendingordersortrowsSortrowsinascendingordersqueezeRemovesingletondimensionstransposeTransposeinlineConstructinlineobjectvectorizeVectorizeexpressionOperatorsandElementaryOperationsArithmeticArithmeticOperatorsMatrixandarrayarithmeticuplusUnaryplusplusPlusuminusUnaryminusminusMinustimesArraymultiplymtimesMatrixmultiplicationrdivideRightarraydivisionldivideLeftarraydivisionmrdivideSolvesystemsoflinearequationsxA=BforxmldivideSolvesystemsoflinearequationsAx=BforxpowerArraypowerMathWorks-MATLABDocumentation[2012/10/1215:54:24]mpowerMatrixpowercumprodCumulativeproductcumsumCumulativesumdiffDifferencesandapproximatederivativesprodProductofarrayelementssumSumofarrayelementsceilRoundtowardpositiveinfinityfixRoundtowardzerofloorRoundtowardnegativeinfinityidivideIntegerdivisionwithroundingoptionmodModulusafterdivisionremRemainderafterdivisionroundRoundtonearestintegerRelationalOperationsRelationalOperatorsRelationaloperationseqTestforequalitygeTestforgreaterthanorequaltogtTestforgreaterthanleTestforlessthanorequaltoltTestforlessthanneTestforinequalityisequalTestarraysforequalityisequalnTestarraysforequality,treatingNaNvaluesasequalisequalwithequalnansTestarraysforequality,treatingNaNsasequalLogicalOperationsLogicalOperators:ElementwiseElementwiselogicaloperationsonarraysLogicalOperators:Short-circuitLogicaloperations,withshort-circuitingcapabilityandFindlogicalANDofarrayorscalarinputsnotFindlogicalNOTofarrayorscalarinputorFindlogicalORofarrayorscalarinputsxorLogicalexclusive-ORallDeterminewhetherallarrayelementsarenonzeroortrueanyDeterminewhetheranyarrayelementsarenonzerofalseLogical0(false)findFindindicesandvaluesofnonzeroelementsislogicalDetermineifinputislogicalarraylogicalConvertnumericvaluestologicaltrueLogical1(true)SetOperationsintersectFindsetintersectionoftwoarraysismemberArrayelementsthataremembersofsetissortedDeterminewhethersetelementsareinsortedordersetdiffFindsetdifferenceoftwoarrayssetxorFindsetexclusiveORoftwoarraysunionFindsetunionoftwoarraysuniqueMathWorks-MATLABDocumentation[2012/10/1215:54:24]FinduniquevaluesinarrayBit-WiseOperationsbitandBitwiseANDbitcmpBitwisecomplementbitgetGetbitatspecifiedpositionbitmaxMaximumdouble-precisionfloating-pointintegerbitorBitwiseORbitsetSetbitatspecificlocationbitshiftShiftbitsspecifiednumberofplacesbitxorBitwiseXORswapbytesSwapbyteorderingSpecialCharactersSpecialCharactersSpecialcharacterscolonCre