See other catalogues for
The MathWorks
You may also be interested in
Text version of the page
| | | | | | | | | | | | | | | |
| | | |
| | | Matrices in the MATLAB® Environment | | |
| | | |
| | | Matrices in the MATLAB® Environment | | |
| | | |
| | | In this section... | | |
| | | |
| | | "Creating Matrices" on page 1-5 "Adding and Subtracting Matrices" on page 1-7 "Vector Products and Transpose" on page 1-7 "Multiplying Matrices" on page 1-10 "Identity Matrix" on page 1-11 "Kronecker Tensor Product" on page 1-12 "Vector and Matrix Norms" on page 1-13 | | |
| | | |
| | | Creating Matrices The MATLAB® environment uses the term matrix to indicate a variable containing real or complex numbers arranged in a two-dimensional grid. An array is, more generally, a vector, matrix, or higher-dimensional grid of numbers. All arrays in MATLAB are rectangular, in the sense that the component vectors along any dimension are all the same length. Symbolic Math Toolbox™ software extends the capabilities of MATLAB software to matrices of mathematical expressions. MATLAB has dozens of functions that create different kinds of matrices. Two of them can be used to create a pair of 3-by-3 example matrices for use throughout this chapter. The first example is symmetric: A = pascal(3) A = 111 12 3 13 6 The second example is not symmetric: B = magic(3) | | |
| | | |
| | | 1-5 | | |
| | | |
| | | | | | | | | | | | | | | |