calcul.io
math playground
New
calculation
Help
Instructions
Examples
Functions
Constants
Display Debug info
Functions
Matrix
ones
ones
ones(m)
ones(m, n)
ones(m, n, p, ...)
ones([m])
ones([m, n])
ones([m, n, p, ...])
Try it yourself:
$1
ones(3)
$2
ones(3, 5)
$3
ones([2,3]) * 4.5
$4
a = [1, 2, 3; 4, 5, 6]
$5
ones(size(a))
See also:
concat
det
diag
identity
inv
range
size
squeeze
subset
trace
transpose
zeros
All functions