AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de valores numéricos / Funciones de matrices
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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)
// Fill a matrix containing 2 rows and 3 columns with the number 5
ResFill = MatFill("MyMatrix", 5, 2, 3)
Syntax
<Result> = MatFill(<Matrix> , <Value> , <Number of rows> , <Number of columns>)
<Result>: Boolean
  • True if the fill operation was performed,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Matrix>: Character string
Name of the matrix to fill, defined by MatCreate.
<Value>: Real
Value given to all the matrix elements.
<Number of rows>: Integer
Number of rows to fill.
<Number of columns>: Integer
Number 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 code
Component: wd290mat.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local