Back to Core Functions
zeros
Create array of all zeros
Syntax
Z = zeros(n) Z = zeros(m, n)
Description
Creates an array of zeros with the specified dimensions. A single argument `n` creates an n×n matrix.
Parameters
| Name | Description |
|---|---|
| m | Number of rows |
| n(optional) | Number of columns |
Returns
NDArray of zeros with the given shape