previous  next
NewMat
Syntax
NewMat(M:INT,N:INT):MAT
NewMat(M:INT,N:INT,E:OBJECT):MAT
Summary
create a new matrix
Description
The second function returns an MxN matrix, filled by E.  The first
function, in which E is not indicated, returns an MxN matrix filled
with 'Null' values.

Example

NewMat(2,3,"a");
Mat[
  ["a", "a", "a"],
  ["a", "a", "a"]
]
-------------------------------
NewMat(2,2);
Mat[
  [Null, Null],
  [Null, Null]
]
-------------------------------
See also: