up previous next
NewMat

create a new matrix

Syntax
NewMat(M:INT,N:INT):MAT
NewMat(M:INT,N:INT,E:OBJECT):MAT

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