Learn R Programming

Tex4exams (version 0.1.2)

m2l: Converting a matrix into TeX code of a matrix with square brackets

Description

m2l converts a matrix into TeX code with square brackets.

Usage

m2l(matrix)

Value

TeX code of the matrix in 'Sweave' file.

Arguments

matrix

a matrix

See Also

rm2l, m22l, rcm2l, cm2l

Examples

Run this code
a <- matrix(sample(c(-10:10),12),nrow =3,byrow=TRUE)
m2l(a)

Run the code above in your browser using DataLab