Mathematica 9 is now available

3.7.1 Constructing Matrices

Functions for constructing matrices.

This generates a  matrix whose   entry is a[i, j].

Here is another way to produce the same matrix.

DiagonalMatrix makes a matrix with zeros everywhere except on the leading diagonal.

IdentityMatrix[n] produces an  identity matrix.

Of the functions for constructing matrices mentioned above, Table is the most general. You can use Table to produce many kinds of matrices.

Some special types of matrices.

Table evaluates Random[ ] separately for each element, to give a different pseudorandom number in each case.

This gives a tridiagonal matrix.

MatrixForm prints the matrix in a two-dimensional array, and makes the structure in this case clearer.

Out[7]//MatrixForm=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.