Function creates a matrix of ones of size (dim1 x dim2). Written to match MATLAB's ones
function.
ones(dim1, dim2 = NULL)
The dimension of the matrix (if square) or the number of rows.
The number of columns
A matrix of ones
Other MATLAB: cell
,
diag_matlab
, feval
,
fileparts
, isempty
,
isfield
, randn
,
randperm
, rand
,
size
, tic
, toc
,
zeros
# NOT RUN {
ones(4)
ones(3,4)
# }
Run the code above in your browser using DataLab