 Help WLanguage WLanguage functions Standard functions Numeric values management functions Matrix functions MatFill Presentation Example See also  MatAdd (Example) MatAdd MatCopy (Example) MatCopy MatCreate (Example) MatCreate MatDelete (Example) MatDelete MatDeterminant (Example) MatDeterminant MatError (Example) MatError MatExist (Example) MatExist MatFill (Example) MatFill MatFloatAdd (Example) MatFloatAdd MatFloatMultiply (Example) MatFloatMultiply MatInvert (Example) MatInvert MatMultiply (Example) MatMultiply MatNbColumn (Example) MatNbColumn MatNbLine (Example) MatNbLine MatRead (Example) MatRead MatReadColumn (Example) MatReadColumn MatReadLine (Example) MatReadLine MatStack (Example) MatStack MatTranspose (Example) MatTranspose MatWrite (Example) MatWrite Matrix management functions The matrices
 WINDEV      WEBDEV    WINDEV Mobile       Others MatFill (Function) In french: MatRemplit Initializes all the elements found in a matrix of a given size. If the matrix is larger, only the specified elements will be filled.For example:Initialize all the matrix elements with the value 5. This matrix contains 2 rows and 3 columns: ResFill = MatFill("MyMatrix", 5, 2, 3) Initialize the matrix elements from row 1 to row 2 and from column 1 to column 3 with the value 5. Only part of the matrix is initialized: ResFill = MatFill("MyMatrix", 5, 2, 3) Example See additional examples // Fill a matrix containing 2 rows and 3 columns with the number 5ResFill = MatFill("MyMatrix", 5, 2, 3) Syntax = MatFill( , , , ) : BooleanTrue if the fill operation was performed, False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant. : Character stringName of the matrix to fill, defined by MatCreate. : RealValue given to all the matrix elements. : IntegerNumber of rows to fill. : IntegerNumber of columns to fill. Remarks A matrix must exist before it can be filled. To check the matrix existence, use MatExist.Business / UI classification: Neutral codeComponent: wd280mat.dll Minimum version required Version 9 This page is also available for…