Skip to content

MatrixForm

MatrixForm(matrix)

print a matrix or sparse array in matrix form

Examples

>> SparseArray({{1, 1} -> 1, {2, 2} -> 2, {3, 3} -> 3, {1, 3} -> 4}) // MatrixForm
>> A = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; MatrixForm(A)