zeros_or_ones | R Documentation |
Generates a square or rectangular matrix of zeros or ones
zeros_or_ones(n, x)
n |
scalar or 2D vector |
x |
value to fill matrix with |
This is a wrapper function to replicate the behavior of the
zeros()
and the ones()
functions on Matlab
n-by-n matrix filled with x
Actually works for any x
, but there's no need to bother imposing
validation controls here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.