ones

ones(m)

ones(m, n)

ones(m, n, p, ...)

ones([m])

ones([m, n])

ones([m, n, p, ...])

Create a matrix containing ones.

Try it yourself:

All functions