rand {PopED} | R Documentation |
Function written to match MATLAB's rand function
Description
Generate random samples from a uniform distribution [0,1] and return in matrix form
Usage
rand(dim1, dim2 = NULL)
Arguments
dim1 |
The dimension of the matrix (if square), otherwise the number of rows. |
dim2 |
The number of columns, if different from the number of rows. |
Value
Matrix of random generated samples.
See Also
Other MATLAB:
cell()
,
diag_matlab()
,
feval()
,
fileparts()
,
isempty()
,
ones()
,
randn()
,
size()
,
tic()
,
toc()
,
zeros()
Examples
rand(2,3)
rand(5)
[Package PopED version 0.7.0 Index]