vmatrixΒΆ
vmatrix creates a variant matrix. Each element is set to zero.
-
vm = vmatrix(nr, nc)
-
vm = vmatrix(rvRowCol)
Return Value
vm is a variant matrix with the element values to to zero.
Parameters
-
nr
nr is the number of rows.
-
nc
nc is the number of columns.
-
rvRowCol
rvRowCol is a vector with two elements. The first element contains the number of rows and the second element the number of columns.
Example
v1 = vmatrix(5, 1);
a = rand(2,3);
v2 = vmatrix(size(a))
History
Version | Description |
---|---|
5.30 | New. |
See also
id-445130