Description Usage Arguments See Also Examples
zeros
produces either a vector or a matrix of
zeros
zeros_vector
produces a vector of zeros
of a given length
zeros_matrix
produces a
matrix of zeros of a given dimension
1 |
n |
indicates either the length (for vector) or the number of rows (for matrix) |
p |
indicates the number of columns (for matrix) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # vector of zeros with 5 elements
zeros(5)
# equivalently
zeros_vector(5)
# 3x3 matrix of zeros
zeros(3, 3)
# equivalently
zeros_matrix(3, 3)
# 1x3 matrix of zeros
zeros(1, 3)
# 3x1 matrix of zeros
zeros(3, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.