Description Usage Arguments Value See Also Examples
A simple wrapper for matrix
that emulates repmat from Matlab. The function behaves similar to matrix
function when a single scalar is specified - it multiplies that scalar to fill out a matrix specified by nrow and ncol arguments. The repmat function takes the whole matrix and treats it as if it were a scalar, and replicates it as many times as needed to fill out a new matrix specified by nrow
and ncol
arguments.
1 |
mat |
A matrix. |
nrow |
A scalar that determines how many times |
ncol |
A scalar that determines how many times |
A matrix where mat
is copied ncol
x nrow
times and added as new columns as specified in ncol
and new rows as specified in nrow
.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.