Assigns a value to all elements of a one- or two-dimensional floating point array.
Mat Set a()=x
a():name of a one- or two-dimensional floating point array
x:aexp
Mat Set a()=x is equivalent to an ArrayFill a(),x, i.e. the command sets all elements of the array a() to value x.
OpenW # 1
PrintScroll = True
Global Double a(1 To 5, 1 To 7), i%, j%, x%
For i% = 1 To 5
For j% = 1 To 7
a(i%, j%) = Rand(10)
Next j%
Next i%
Mat Set a() = 5.3
For i% = 1 To 5
For j% = 1 To 7
Print a(i%, j%)
Next j%
Next i%//prints the value 5.3 35 times
ArrayFill, Mat Clr, Mat One, Mat Neg
{Created by Sjouke Hamstra; Last updated: 15/10/2014 by James Gaite}