Module 2

4
 Module 2: Arrays & Matrices Scalars Vectors Generating a Numeric Sequence The Colon Operator Using the Colon Operator with a Step Value About Matrices Overview Creating Matrices Create Numeric Arrays Constructing a Simple Matrix Entering Matrices Generating Matrices Generating Random Numbers Concatenation Concatenating Matrices Matrix Concatenation Functions Subscripts Logical Subscripting The find Function Accessing Single Elements Linear Indexing Functions That Control Indexing Style Accessing Multiple Elements Using Logicals in Array Indexing

description

Module 2 Syllabus

Transcript of Module 2

  • ahmed hwaidiTypewritten text

    ahmed hwaidiTypewritten text

    ahmed hwaidiTypewritten textModule 2: Arrays & MatricesScalarsVectorsGenerating a Numeric SequenceThe Colon OperatorUsing the Colon Operator with a Step ValueAbout MatricesOverviewCreating MatricesCreate Numeric ArraysConstructing a Simple MatrixEntering MatricesGenerating MatricesGenerating Random NumbersConcatenationConcatenating MatricesMatrix Concatenation Functions

    SubscriptsLogical SubscriptingThe find FunctionAccessing Single ElementsLinear IndexingFunctions That Control Indexing StyleAccessing Multiple ElementsUsing Logicals in Array Indexing

  • ahmed hwaidiTypewritten textSingle-Colon Indexing with Different Array TypesIndexing on AssignmentDeleting Rows and ColumnsGetting Information About a MatrixDimensions of the MatrixClasses Used in the Matrix

    Resizing and Reshaping MatricesExpanding the Size of a MatrixDiminishing the Size of a MatrixReshaping a MatrixPreallocating Memory

    Shifting and Sorting MatricesShift and Sort FunctionsShifting the Location of Matrix ElementsSorting the Data in Each ColumnSorting the Data in Each RowSorting Row Vectors

    Operating on Diagonal MatricesDiagonal Matrix FunctionsConstructing a Matrix from a Diagonal VectorReturning a Triangular Portion of a Matrix

  • ahmed hwaidiTypewritten textMatrix OperatorsArray OperatorsAdding and Subtracting MatricesVector Products and TransposeMultiplying Matricessum, transpose, and diagInverses and DeterminantsIdentity MatrixSystems of Linear EquationsComputational ConsiderationsThe mldivide AlgorithmGeneral SolutionMATLAB Linear Algebra Functions

    Representing PolynomialsEvaluating PolynomialsRoots of PolynomialsDerivativesConvolutionPartial Fraction ExpansionsCharacteristic PolynomialsFunction Summary

  • ahmed hwaidiTypewritten textMultidimensional ArraysOverviewCreating Multidimensional ArraysAccessing Multidimensional Array PropertiesIndexing Multidimensional ArraysReshaping Multidimensional ArraysPermuting Array DimensionsComputing with Multidimensional ArraysOrganizing Data in Multidimensional ArraysSummary of Matrix and Array Functions