Commands by Category:
Index:
Creates a matrix of zeros.
zeros
r (scalar) – the number of rows.
c (scalar) – the number of columns.
y (RxC matrix) – of zeros.
y = zeros(3,2); print y;
The code above produces the following output:
0.000 0.000 0.000 0.000 0.000 0.000
This is faster than ones().
ones()
Non-integer arguments will be truncated to an integer.
See also
Functions ones(), eye()
eye()
previous
Z
next
zeta