zero function matlab code example
Example 1: matlab matrix zeros
X = zeros(4) % Creates a 4x4 matrix of zeros.
X = zeros(3,2) % Creates a 3x2 matrix of zeros.
Example 2: matlab zeros
X = zeros(sz1,...,szN) returns an sz1-by-...-by-szN array of zeros where sz1,...,szN indicate the size of each dimension.
For example, zeros(2,3) returns a 2-by-3 matrix