Mathematics - The MathWorks - #15

/ 316


catalogue search
P. 01
P. 02
P. 03
P. 04
P. 05
P. 06
P. 07
P. 08
P. 09
P. 10
P. 11
P. 12
P. 13
P. 14
P. 15
P. 16
P. 17
P. 18
P. 19
P. 20
P. 21
P. 22
P. 23
P. 24
P. 25
P. 26
P. 27
P. 28
P. 29
P. 30
P. 31
P. 32
P. 33
P. 34
P. 35
P. 36
P. 37
P. 38
P. 39
P. 40
P. 41
P. 42
P. 43
P. 44
P. 45
P. 46
P. 47
P. 48
P. 49
P. 50


See other catalogues for The MathWorks

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

pageCatalog pdf di En 2012-06-22-01