powered by
Create a matrix of ones of size (dim1 x dim2).
ones(dim1, dim2 = NULL)
A matrix of ones
The dimension of the matrix (if square) or the number of rows.
The number of columns
Other MATLAB: cell(), diag_matlab(), feval(), fileparts(), isempty(), rand(), randn(), size(), tic(), toc(), zeros()
cell()
diag_matlab()
feval()
fileparts()
isempty()
rand()
randn()
size()
tic()
toc()
zeros()
ones(4) ones(3,4)
Run the code above in your browser using DataLab