 Help WLanguage WLanguage functions Standard functions Numeric values management functions Matrix functions MatFloatMultiply (Example) Multiplying the elements of a matrix by a value  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
 Multiplying the elements of a matrix by a value MatFloatMultiply (Example)See the associated help page Multiplying the elements of a matrix by a value The following code is used to multiply all the matrix elements by 5. The name of the matrix is entered by the user in an edit control (EDT_MatrixName).We assume that the matrix is already created. The existence of the matrix is checked by MatExist. // -- Click code on BTN_MultiplyValue// Checks whether the matrix existsIF MatExist(EDT_MatrixName) = True THEN // Multiply the matrix elements by 5 MatFloatMultiply(EDT_MatrixName, 5) // Error? IF MatError(EDT_MatrixName) = 0 THEN Info("The multiplication was performed") ELSE // Display the error message Error(ErrorInfo(errMessage)) ENDELSE Info("The matrix does not exist")END Minimum version required Version 9 This page is also available for…